This repository was archived by the owner on Oct 2, 2019. It is now read-only.
File tree 1 file changed +0
-28
lines changed
1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -1427,34 +1427,6 @@ describe('ui-select tests', function() {
1427
1427
1428
1428
} ) ;
1429
1429
1430
- it ( 'should call refresh function when search text changes' , function ( ) {
1431
-
1432
- var el = compileTemplate (
1433
- '<ui-select ng-model="selection.selected"> \
1434
- <ui-select-match> \
1435
- </ui-select-match> \
1436
- <ui-select-choices repeat="person in people | filter: $select.search" \
1437
- refresh="fetchFromServer($select.search)" refresh-delay="0"> \
1438
- <div ng-bind-html="person.name | highlight: $select.search"></div> \
1439
- <div ng-if="person.name==\'Wladimir\'"> \
1440
- <span class="only-once">I should appear only once</span>\
1441
- </div> \
1442
- </ui-select-choices> \
1443
- </ui-select>'
1444
- ) ;
1445
-
1446
- scope . fetchFromServer = function ( ) { } ;
1447
-
1448
- spyOn ( scope , 'fetchFromServer' ) ;
1449
-
1450
- el . scope ( ) . $select . search = 'r' ;
1451
- scope . $digest ( ) ;
1452
- $timeout . flush ( ) ;
1453
-
1454
- expect ( scope . fetchFromServer ) . toHaveBeenCalledWith ( 'r' ) ;
1455
-
1456
- } ) ;
1457
-
1458
1430
it ( 'should call refresh function respecting minimum input length option' , function ( ) {
1459
1431
1460
1432
var el = compileTemplate (
You can’t perform that action at this time.
0 commit comments