diff options
Diffstat (limited to 'test/ng/timeoutSpec.js')
| -rw-r--r-- | test/ng/timeoutSpec.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ng/timeoutSpec.js b/test/ng/timeoutSpec.js index 19db1227..5ee99d98 100644 --- a/test/ng/timeoutSpec.js +++ b/test/ng/timeoutSpec.js @@ -142,5 +142,10 @@ describe('$timeout', function() { expect($timeout.cancel(promise1)).toBe(false); expect($timeout.cancel(promise2)).toBe(true); })); + + + it('should not throw a runtime exception when given an undefined promise', inject(function($timeout) { + expect($timeout.cancel()).toBe(false); + })); }); }); |
