File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
test/unit/angular/directive Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -1044,6 +1044,7 @@ describe('Ionic nav-view', function() {
10441044
10451045 expect ( clearCacheCollection . length ) . toBe ( 0 ) ;
10461046 $ionicHistory . clearCache ( ) ;
1047+ $timeout . flush ( ) ;
10471048
10481049 expect ( clearCacheCollection . length ) . toBe ( 2 ) ;
10491050 expect ( clearCacheCollection [ 0 ] . stateName ) . toBe ( 'page1' ) ;
@@ -1057,6 +1058,7 @@ describe('Ionic nav-view', function() {
10571058 expect ( divs . eq ( 0 ) . text ( ) ) . toBe ( 'page3' ) ;
10581059
10591060 $ionicHistory . clearCache ( ) ;
1061+ $timeout . flush ( ) ;
10601062 expect ( clearCacheCollection . length ) . toBe ( 0 ) ;
10611063
10621064 var divs = elem . find ( 'ion-nav-view' ) . find ( 'div' ) ;
@@ -1143,6 +1145,7 @@ describe('Ionic nav-view', function() {
11431145 expect ( tab2Ele . childElementCount ) . toBe ( 1 ) ;
11441146
11451147 $ionicHistory . clearCache ( ) ;
1148+ $timeout . flush ( ) ;
11461149
11471150 tab1Ele = elem [ 0 ] . querySelector ( 'ion-nav-view[name="tab1"]' ) ;
11481151 expect ( tab1Ele ) . toEqual ( null ) ;
You can’t perform that action at this time.
0 commit comments