File tree 2 files changed +1
-3
lines changed
2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -481,7 +481,7 @@ angular.module('ngAnimate', ['ng'])
481
481
//avoid calling done() since there is no need to remove any
482
482
//data or className values since this happens earlier than that
483
483
//and also use a timeout so that it won't be asynchronous
484
- $timeout ( onComplete || noop , 0 , false ) ;
484
+ onComplete && onComplete ( ) ;
485
485
return ;
486
486
}
487
487
Original file line number Diff line number Diff line change @@ -503,7 +503,6 @@ describe("ngAnimate", function() {
503
503
element . addClass ( 'ng-hide' ) ;
504
504
expect ( element ) . toBeHidden ( ) ;
505
505
$animate . removeClass ( element , 'ng-hide' ) ;
506
- $timeout . flush ( ) ;
507
506
expect ( element ) . toBeShown ( ) ;
508
507
} ) ) ;
509
508
@@ -554,7 +553,6 @@ describe("ngAnimate", function() {
554
553
element . addClass ( 'ng-hide' ) ;
555
554
expect ( element ) . toBeHidden ( ) ;
556
555
$animate . removeClass ( element , 'ng-hide' ) ;
557
- $timeout . flush ( ) ;
558
556
expect ( element ) . toBeShown ( ) ;
559
557
560
558
$animate . enabled ( true ) ;
You can’t perform that action at this time.
0 commit comments