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

Commit

Permalink
fix(ngClassSpec): clear animation enable fn from postDigestQueue
Browse files Browse the repository at this point in the history
  • Loading branch information
petebacondarwin authored and IgorMinar committed Nov 8, 2013
1 parent 9d00458 commit ffa9d0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/ng/directive/ngClassSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>');
Expand Down

0 comments on commit ffa9d0a

Please sign in to comment.