Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit ffa9d0a

Browse files
petebacondarwinIgorMinar
authored andcommitted
fix(ngClassSpec): clear animation enable fn from postDigestQueue
1 parent 9d00458 commit ffa9d0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/ng/directive/ngClassSpec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,8 @@ describe('ngClass animations', function() {
371371
});
372372
inject(function($compile, $rootScope, $rootElement, $animate, $timeout, $document) {
373373

374-
//since we skip animations upon first digest, this needs to be set to true
375-
$animate.enabled(true);
374+
// Enable animations by triggering the first item in the postDigest queue
375+
digestQueue.shift()();
376376

377377
$rootScope.val = 'crazy';
378378
var element = angular.element('<div ng-class="val"></div>');

0 commit comments

Comments
 (0)