aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/directive/ngSwitchSpec.js
diff options
context:
space:
mode:
authorMatias Niemelä2013-07-31 15:38:19 -0400
committerMisko Hevery2013-08-02 23:52:37 -0700
commit85d705ab69a89cc5b0c8d2636dede4827d0d8141 (patch)
tree2cf87981f799cbe7db7ae92c1a6ef6c7a86a79b0 /test/ng/directive/ngSwitchSpec.js
parent52a7c351c9ee7fe35b1ddf2ccd37b472b01519f7 (diff)
downloadangular.js-85d705ab69a89cc5b0c8d2636dede4827d0d8141.tar.bz2
chore(ngMock): rename $animate.process to $animate.flushNext()
Diffstat (limited to 'test/ng/directive/ngSwitchSpec.js')
-rw-r--r--test/ng/directive/ngSwitchSpec.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ng/directive/ngSwitchSpec.js b/test/ng/directive/ngSwitchSpec.js
index 8750b187..e4cd483c 100644
--- a/test/ng/directive/ngSwitchSpec.js
+++ b/test/ng/directive/ngSwitchSpec.js
@@ -255,7 +255,7 @@ describe('ngSwitch animations', function() {
$scope.val = 'one';
$scope.$digest();
- item = $animate.process('enter').element;
+ item = $animate.flushNext('enter').element;
expect(item.text()).toBe('one');
}));
@@ -276,16 +276,16 @@ describe('ngSwitch animations', function() {
$scope.val = 'two';
$scope.$digest();
- item = $animate.process('enter').element;
+ item = $animate.flushNext('enter').element;
expect(item.text()).toBe('two');
$scope.val = 'three';
$scope.$digest();
- item = $animate.process('leave').element;
+ item = $animate.flushNext('leave').element;
expect(item.text()).toBe('two');
- item = $animate.process('enter').element;
+ item = $animate.flushNext('enter').element;
expect(item.text()).toBe('three');
}));