Skip to content

Commit 40b1739

Browse files
committed
fix: move tearDown to chart related test files
1 parent 603bf4f commit 40b1739

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

packages/igx-templates/igx-ts/category-chart/default/files/src/app/__path__/__filePrefix__.component.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ describe('<%=ClassName%>Component', () => {
99

1010
beforeEach(waitForAsync(() => {
1111
TestBed.configureTestingModule({
12-
imports: [FormsModule, IgxCategoryChartModule, <%=ClassName%>Component]
12+
imports: [FormsModule, IgxCategoryChartModule, <%=ClassName%>Component],
13+
teardown: { destroyAfterEach: false }
1314
})
1415
.compileComponents();
1516
}));

packages/igx-templates/igx-ts/financial-chart/default/files/src/app/__path__/__filePrefix__.component.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ describe('<%=ClassName%>Component', () => {
88

99
beforeEach(waitForAsync(() => {
1010
TestBed.configureTestingModule({
11-
imports: [IgxFinancialChartModule, <%=ClassName%>Component]
11+
imports: [IgxFinancialChartModule, <%=ClassName%>Component],
12+
teardown: { destroyAfterEach: false }
1213
})
1314
.compileComponents();
1415
}));

0 commit comments

Comments
 (0)