File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -1623,7 +1623,11 @@ describe('ui-select tests', function() {
1623
1623
scope . fetchFromServer = function ( ) { } ;
1624
1624
1625
1625
spyOn ( scope , 'fetchFromServer' ) ;
1626
-
1626
+
1627
+ el . scope ( ) . $select . activate ( ) ;
1628
+ scope . $digest ( ) ;
1629
+ $timeout . flush ( ) ;
1630
+
1627
1631
el . scope ( ) . $select . search = 'r' ;
1628
1632
scope . $digest ( ) ;
1629
1633
$timeout . flush ( ) ;
@@ -1651,7 +1655,11 @@ describe('ui-select tests', function() {
1651
1655
scope . fetchFromServer = function ( ) { } ;
1652
1656
1653
1657
spyOn ( scope , 'fetchFromServer' ) ;
1654
-
1658
+
1659
+ el . scope ( ) . $select . activate ( ) ;
1660
+ scope . $digest ( ) ;
1661
+ $timeout . flush ( ) ;
1662
+
1655
1663
el . scope ( ) . $select . search = 'r' ;
1656
1664
scope . $digest ( ) ;
1657
1665
$timeout . flush ( ) ;
@@ -3106,6 +3114,7 @@ describe('ui-select tests', function() {
3106
3114
spyOn ( scope , 'fetchFromServer' ) ;
3107
3115
expect ( el . scope ( ) . $select . open ) . toEqual ( false ) ;
3108
3116
el . scope ( ) . $select . activate ( ) ;
3117
+ scope . $digest ( ) ;
3109
3118
$timeout . flush ( ) ;
3110
3119
expect ( el . scope ( ) . $select . open ) . toEqual ( true ) ;
3111
3120
expect ( scope . fetchFromServer . calls . any ( ) ) . toEqual ( true ) ;
You can’t perform that action at this time.
0 commit comments