aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/timeoutSpec.js
diff options
context:
space:
mode:
authorIgor Minar2013-08-27 17:20:30 -0700
committerIgor Minar2013-08-27 17:23:36 -0700
commit4114f9c21bec5a396e59954dfc42d2c96527ac3d (patch)
treefeae4ef9b6f1b32cb2d5558f3a86f98bbc6382bc /test/ng/timeoutSpec.js
parent70b44ad32a79e0746e19a74bde35f49c79f89942 (diff)
downloadangular.js-4114f9c21bec5a396e59954dfc42d2c96527ac3d.tar.bz2
revert: feat(mocks): make $timeout#flush throw an exception when empty
This reverts commit cbf06a5d64aba537f0e2679a194d3998d8365493. This turned out to be a bad idea because it allow us to fast-forward the wall clock time (see previous commit).
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 e4a2bc39..832528e9 100644
--- a/test/ng/timeoutSpec.js
+++ b/test/ng/timeoutSpec.js
@@ -14,7 +14,7 @@ describe('$timeout', function() {
$browser.defer.flush();
expect(counter).toBe(1);
- expect(function() {$browser.defer.flush();}).toThrow('No deferred tasks to be flushed!');
+ expect(function() {$browser.defer.flush();}).toThrow('No deferred tasks to be flushed');
expect(counter).toBe(1);
}));