Skip to content

Commit a72c12b

Browse files
fix(ngMock): clear out $providerInjector after each test
Closes angular#13397 Closes angular#13416
1 parent 73e3865 commit a72c12b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ngMock/angular-mocks.js

+1
Original file line numberDiff line numberDiff line change
@@ -2475,6 +2475,7 @@ if (window.jasmine || window.mocha) {
24752475

24762476
currentSpec.$injector = null;
24772477
currentSpec.$modules = null;
2478+
currentSpec.$providerInjector = null;
24782479
currentSpec = null;
24792480

24802481
if (injector) {

0 commit comments

Comments
 (0)