mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
fix(ngClassSpec): clear animation enable fn from postDigestQueue
This commit is contained in:
parent
9d00458563
commit
ffa9d0a6db
1 changed files with 2 additions and 2 deletions
|
|
@ -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>');
|
||||
|
|
|
|||
Loading…
Reference in a new issue