mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
chore: add support for noImplicitThis (#13404)
This commit is contained in:
committed by
Joey Perrott
parent
5c8e0cbc95
commit
97703be459
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user