aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ng/timeoutSpec.js2
-rw-r--r--test/ngMock/angular-mocksSpec.js4
2 files changed, 3 insertions, 3 deletions
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);
}));
});