diff options
Diffstat (limited to 'test/InjectorSpec.js')
| -rw-r--r-- | test/InjectorSpec.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/InjectorSpec.js b/test/InjectorSpec.js index 3ba819b8..ac412c39 100644 --- a/test/InjectorSpec.js +++ b/test/InjectorSpec.js @@ -239,6 +239,12 @@ describe('injector', function() { expect($injector('a')).toEqual('abc'); }); + it('should error on invalid madule name', function(){ + expect(function(){ + createInjector(['IDontExist'], {}); + }).toThrow("Module 'IDontExist' is not defined!"); + }); + describe('$provide', function() { describe('value', function(){ |
