We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 186a591 commit 07084e1Copy full SHA for 07084e1
1 file changed
test/auto/injectorSpec.js
@@ -74,6 +74,17 @@ describe('injector', function() {
74
});
75
76
77
+ it('should not corrupt the cache when an object fails to get instantiated', function() {
78
+ expect(function() {
79
+ injector.get('idontexist');
80
+ }).toThrowMinErr("$injector", "unpr", "Unknown provider: idontexistProvider <- idontexist");
81
+
82
83
84
85
+ });
86
87
88
it('should provide path to the missing provider', function() {
89
providers('a', function(idontexist) {return 1;});
90
providers('b', function(a) {return 2;});
0 commit comments