diff options
| author | Igor Minar | 2013-08-27 17:20:30 -0700 |
|---|---|---|
| committer | Igor Minar | 2013-08-27 17:23:36 -0700 |
| commit | 4114f9c21bec5a396e59954dfc42d2c96527ac3d (patch) | |
| tree | feae4ef9b6f1b32cb2d5558f3a86f98bbc6382bc /test/ng/timeoutSpec.js | |
| parent | 70b44ad32a79e0746e19a74bde35f49c79f89942 (diff) | |
| download | angular.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.js | 2 |
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); })); |
