diff options
Diffstat (limited to 'test/angular-mocksSpec.js')
| -rw-r--r-- | test/angular-mocksSpec.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/angular-mocksSpec.js b/test/angular-mocksSpec.js index dac691b0..c57b35e0 100644 --- a/test/angular-mocksSpec.js +++ b/test/angular-mocksSpec.js @@ -216,4 +216,13 @@ describe('mocks', function(){ }); }); + + describe('$exceptionHandler', function() { + it('should rethrow exceptions', function() { + var rootScope = angular.scope(), + exHandler = rootScope.$service('$exceptionHandler'); + + expect(function() { exHandler('myException') }).toThrow('myException'); + }); + }); }); |
