aboutsummaryrefslogtreecommitdiffstats
path: root/test/loaderSpec.js
diff options
context:
space:
mode:
authorPete Bacon Darwin2013-11-20 10:35:27 +0000
committerIgor Minar2013-11-21 22:51:26 -0800
commit9e89a31b129e40c805178535c244899ffafb77d8 (patch)
tree15dd79635457a8a4e16130149e101420983d9fe1 /test/loaderSpec.js
parente6521e7491242504250b57dd0ee66af49e653c33 (diff)
downloadangular.js-9e89a31b129e40c805178535c244899ffafb77d8.tar.bz2
fix(loader): expose `$$minErr` to modules such as`ngResource`
This is highlighted in angular-phonecat when you try to use the index-async.html which needs to load the ngResource module asynchronously but fails when it tries to call `angular.$$minErr` to create the $resourceMinErr object. Closes #5050
Diffstat (limited to 'test/loaderSpec.js')
-rw-r--r--test/loaderSpec.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/loaderSpec.js b/test/loaderSpec.js
index 2a564115..816e0a10 100644
--- a/test/loaderSpec.js
+++ b/test/loaderSpec.js
@@ -78,4 +78,8 @@ describe('module loader', function() {
window.angular.module('hasOwnProperty', []);
}).toThrowMinErr('ng','badname', "hasOwnProperty is not a valid module name");
});
+
+ it('should expose `$$minErr` on the `angular` object', function() {
+ expect(window.angular.$$minErr).toEqual(jasmine.any(Function));
+ })
});