diff options
Diffstat (limited to 'test/angular-mocksSpec.js')
| -rw-r--r-- | test/angular-mocksSpec.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/angular-mocksSpec.js b/test/angular-mocksSpec.js index 5d0be7ad..a8328f41 100644 --- a/test/angular-mocksSpec.js +++ b/test/angular-mocksSpec.js @@ -291,6 +291,10 @@ describe('mocks', function() { expect(browser.defer.now).toEqual(3); expect(log).toEqual('A;B;C;'); }); + + it('should throw an exception if there is nothing to be flushed', function() { + expect(function() {browser.defer.flush();}).toThrow('No deferred tasks to be flushed'); + }); }); |
