diff options
| author | Matias Niemelä | 2013-07-31 15:38:19 -0400 |
|---|---|---|
| committer | Misko Hevery | 2013-08-02 23:52:37 -0700 |
| commit | 85d705ab69a89cc5b0c8d2636dede4827d0d8141 (patch) | |
| tree | 2cf87981f799cbe7db7ae92c1a6ef6c7a86a79b0 /test/ng/directive/ngIfSpec.js | |
| parent | 52a7c351c9ee7fe35b1ddf2ccd37b472b01519f7 (diff) | |
| download | angular.js-85d705ab69a89cc5b0c8d2636dede4827d0d8141.tar.bz2 | |
chore(ngMock): rename $animate.process to $animate.flushNext()
Diffstat (limited to 'test/ng/directive/ngIfSpec.js')
| -rwxr-xr-x | test/ng/directive/ngIfSpec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ng/directive/ngIfSpec.js b/test/ng/directive/ngIfSpec.js index 8f2cb793..79eab6bb 100755 --- a/test/ng/directive/ngIfSpec.js +++ b/test/ng/directive/ngIfSpec.js @@ -119,7 +119,7 @@ describe('ngIf animations', function () { $rootScope.$digest(); $scope.$apply('value = true'); - item = $animate.process('enter').element; + item = $animate.flushNext('enter').element; expect(item.text()).toBe('Hi'); expect(element.children().length).toBe(1); @@ -136,13 +136,13 @@ describe('ngIf animations', function () { ))($scope); $scope.$apply('value = true'); - item = $animate.process('enter').element; + item = $animate.flushNext('enter').element; expect(item.text()).toBe('Hi'); $scope.$apply('value = false'); expect(element.children().length).toBe(1); - item = $animate.process('leave').element; + item = $animate.flushNext('leave').element; expect(item.text()).toBe('Hi'); expect(element.children().length).toBe(0); |
