From 9e89a31b129e40c805178535c244899ffafb77d8 Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Wed, 20 Nov 2013 10:35:27 +0000 Subject: 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 --- test/loaderSpec.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') 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)); + }) }); -- cgit v1.2.3