aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/directive/ngClassSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/ng/directive/ngClassSpec.js')
-rw-r--r--test/ng/directive/ngClassSpec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ng/directive/ngClassSpec.js b/test/ng/directive/ngClassSpec.js
index a788e452..ab996e4d 100644
--- a/test/ng/directive/ngClassSpec.js
+++ b/test/ng/directive/ngClassSpec.js
@@ -371,8 +371,8 @@ describe('ngClass animations', function() {
});
inject(function($compile, $rootScope, $rootElement, $animate, $timeout, $document) {
- //since we skip animations upon first digest, this needs to be set to true
- $animate.enabled(true);
+ // Enable animations by triggering the first item in the postDigest queue
+ digestQueue.shift()();
$rootScope.val = 'crazy';
var element = angular.element('<div ng-class="val"></div>');