aboutsummaryrefslogtreecommitdiffstats
path: root/test/ngRoute
diff options
context:
space:
mode:
Diffstat (limited to 'test/ngRoute')
-rw-r--r--test/ngRoute/directive/ngViewSpec.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ngRoute/directive/ngViewSpec.js b/test/ngRoute/directive/ngViewSpec.js
index 818645ef..1bce2b62 100644
--- a/test/ngRoute/directive/ngViewSpec.js
+++ b/test/ngRoute/directive/ngViewSpec.js
@@ -637,6 +637,9 @@ describe('ngView animations', function() {
$rootScope.$digest();
$animate.flushNext('leave'); //ngView old
+
+ $rootScope.$digest();
+
$animate.flushNext('enter'); //ngView new
expect(n(element.text())).toEqual(''); //this is midway during the animation
@@ -644,6 +647,8 @@ describe('ngView animations', function() {
$animate.flushNext('enter'); //ngRepeat 3
$animate.flushNext('enter'); //ngRepeat 4
+ $rootScope.$digest();
+
expect(element.text()).toEqual('34');
function n(text) {