chore: add support for noImplicitThis (#13404)

This commit is contained in:
Kristiyan Kostadinov
2018-10-17 17:02:17 +03:00
committed by Joey Perrott
parent 5c8e0cbc95
commit 97703be459
21 changed files with 30 additions and 10 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ function patchTestBedToDestroyFixturesAfterEveryTest(testBedInstance: TestBed) {
// Monkey-patch the resetTestingModule to destroy fixtures outside of a try/catch block.
// With https://github.com/angular/angular/commit/2c5a67134198a090a24f6671dcdb7b102fea6eba
// errors when destroying components are no longer causing Jasmine to fail.
testBedInstance.resetTestingModule = function() {
testBedInstance.resetTestingModule = function(this: {_activeFixtures: ComponentFixture<any>[]}) {
try {
this._activeFixtures.forEach((fixture: ComponentFixture<any>) => fixture.destroy());
} finally {