From fc8034b352121f8f057dbd5e3837eeb17e1df580 Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Thu, 5 Sep 2013 12:01:31 -0700 Subject: feat(ngMock.$timeout): remove flushNext method --- test/ng/timeoutSpec.js | 2 +- test/ngMock/angular-mocksSpec.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/ng/timeoutSpec.js b/test/ng/timeoutSpec.js index 832528e9..8de63bec 100644 --- a/test/ng/timeoutSpec.js +++ b/test/ng/timeoutSpec.js @@ -77,7 +77,7 @@ describe('$timeout', function() { var promise2 = $timeout(function() {}, 100, false); expect(cancelSpy).not.toHaveBeenCalled(); - $timeout.flushNext(0); + $timeout.flush(0); // Promise1 deferred object should already be removed from the list and not cancellable $timeout.cancel(promise1); diff --git a/test/ngMock/angular-mocksSpec.js b/test/ngMock/angular-mocksSpec.js index 966877b8..e506e608 100644 --- a/test/ngMock/angular-mocksSpec.js +++ b/test/ngMock/angular-mocksSpec.js @@ -417,9 +417,9 @@ describe('ngMock', function() { $timeout(iterate, 100); $timeout(iterate, 123); - $timeout.flushNext(100); + $timeout.flush(100); expect(count).toBe(1); - $timeout.flushNext(123); + $timeout.flush(123); expect(count).toBe(2); })); }); -- cgit v1.2.3