File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
versioned_docs/version-v6/angular Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ Since pages and components contain both TypeScript code and HTML template markup
8282
8383``` tsx
8484import { CUSTOM_ELEMENTS_SCHEMA } from ' @angular/core' ;
85- import { async , ComponentFixture , TestBed } from ' @angular/core/testing' ;
85+ import { ComponentFixture , TestBed } from ' @angular/core/testing' ;
8686
8787import { TabsPage } from ' ./tabs.page' ;
8888
@@ -91,13 +91,11 @@ describe('TabsPage', () => {
9191 let fixture: ComponentFixture <TabsPage >;
9292
9393 beforeEach (async () => {
94- TestBed .configureTestingModule ({
94+ await TestBed .configureTestingModule ({
9595 declarations: [TabsPage ],
9696 schemas: [CUSTOM_ELEMENTS_SCHEMA ],
9797 }).compileComponents ();
98- });
9998
100- beforeEach (() => {
10199 fixture = TestBed .createComponent (TabsPage );
102100 component = fixture .componentInstance ;
103101 fixture .detectChanges ();
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ Since pages and components contain both TypeScript code and HTML template markup
8282
8383``` tsx
8484import { CUSTOM_ELEMENTS_SCHEMA } from ' @angular/core' ;
85- import { async , ComponentFixture , TestBed } from ' @angular/core/testing' ;
85+ import { ComponentFixture , TestBed } from ' @angular/core/testing' ;
8686
8787import { TabsPage } from ' ./tabs.page' ;
8888
@@ -91,13 +91,11 @@ describe('TabsPage', () => {
9191 let fixture: ComponentFixture <TabsPage >;
9292
9393 beforeEach (async () => {
94- TestBed .configureTestingModule ({
94+ await TestBed .configureTestingModule ({
9595 declarations: [TabsPage ],
9696 schemas: [CUSTOM_ELEMENTS_SCHEMA ],
9797 }).compileComponents ();
98- });
9998
100- beforeEach (() => {
10199 fixture = TestBed .createComponent (TabsPage );
102100 component = fixture .componentInstance ;
103101 fixture .detectChanges ();
You can’t perform that action at this time.
0 commit comments