aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorIgor Minar2013-07-11 12:15:58 -0700
committerIgor Minar2013-07-11 12:16:02 -0700
commite82d780c2e489aa136700e975ecc0592ad8ee9b1 (patch)
tree6b406821fb0fea07a63b3f786c6500bea805bd2a /test
parent31631b2b2879f49b4458461b1ec1fb79d32dfb42 (diff)
downloadangular.js-e82d780c2e489aa136700e975ecc0592ad8ee9b1.tar.bz2
fix($injector): improve $injector:nomod error message
Closes #2695
Diffstat (limited to 'test')
-rw-r--r--test/loaderSpec.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/loaderSpec.js b/test/loaderSpec.js
index ce98c50a..73e94215 100644
--- a/test/loaderSpec.js
+++ b/test/loaderSpec.js
@@ -68,6 +68,8 @@ describe('module loader', function() {
it('should complain of no module', function() {
expect(function() {
window.angular.module('dontExist');
- }).toThrow("[$injector:nomod] Module 'dontExist' is not available! You either misspelled the module name or forgot to load it.");
+ }).toThrow("[$injector:nomod] Module 'dontExist' is not available! You either misspelled the module name " +
+ "or forgot to load it. If registering a module ensure that you specify the dependencies as the second " +
+ "argument.");
});
});