aboutsummaryrefslogtreecommitdiffstats
path: root/test/InjectorSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2011-11-02 16:32:46 -0700
committerMisko Hevery2011-11-14 16:39:33 -0800
commitbd04316a89a0909e7a4e483839d573ce857f7622 (patch)
tree0378c33976ba524b7090a3665cd7729638f1545e /test/InjectorSpec.js
parented36b9da3be338fe9eb36f3eeea901d6f51cd768 (diff)
downloadangular.js-bd04316a89a0909e7a4e483839d573ce857f7622.tar.bz2
refactor(services): migrate angular.service -> module
Diffstat (limited to 'test/InjectorSpec.js')
-rw-r--r--test/InjectorSpec.js6
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(){