aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/timeoutSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/ng/timeoutSpec.js')
-rw-r--r--test/ng/timeoutSpec.js2
1 files changed, 1 insertions, 1 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);