From ffa9d0a6db137cba4090e569b8ed4e25a711314e Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Thu, 7 Nov 2013 18:43:42 +0000 Subject: fix(ngClassSpec): clear animation enable fn from postDigestQueue --- test/ng/directive/ngClassSpec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') 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('
'); -- cgit v1.2.3