File tree 2 files changed +4
-8
lines changed
versioned_docs/version-v6/angular
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
82
82
83
83
``` tsx
84
84
import { CUSTOM_ELEMENTS_SCHEMA } from ' @angular/core' ;
85
- import { async , ComponentFixture , TestBed } from ' @angular/core/testing' ;
85
+ import { ComponentFixture , TestBed } from ' @angular/core/testing' ;
86
86
87
87
import { TabsPage } from ' ./tabs.page' ;
88
88
@@ -91,13 +91,11 @@ describe('TabsPage', () => {
91
91
let fixture: ComponentFixture <TabsPage >;
92
92
93
93
beforeEach (async () => {
94
- TestBed .configureTestingModule ({
94
+ await TestBed .configureTestingModule ({
95
95
declarations: [TabsPage ],
96
96
schemas: [CUSTOM_ELEMENTS_SCHEMA ],
97
97
}).compileComponents ();
98
- });
99
98
100
- beforeEach (() => {
101
99
fixture = TestBed .createComponent (TabsPage );
102
100
component = fixture .componentInstance ;
103
101
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
82
82
83
83
``` tsx
84
84
import { CUSTOM_ELEMENTS_SCHEMA } from ' @angular/core' ;
85
- import { async , ComponentFixture , TestBed } from ' @angular/core/testing' ;
85
+ import { ComponentFixture , TestBed } from ' @angular/core/testing' ;
86
86
87
87
import { TabsPage } from ' ./tabs.page' ;
88
88
@@ -91,13 +91,11 @@ describe('TabsPage', () => {
91
91
let fixture: ComponentFixture <TabsPage >;
92
92
93
93
beforeEach (async () => {
94
- TestBed .configureTestingModule ({
94
+ await TestBed .configureTestingModule ({
95
95
declarations: [TabsPage ],
96
96
schemas: [CUSTOM_ELEMENTS_SCHEMA ],
97
97
}).compileComponents ();
98
- });
99
98
100
- beforeEach (() => {
101
99
fixture = TestBed .createComponent (TabsPage );
102
100
component = fixture .componentInstance ;
103
101
fixture .detectChanges ();
You can’t perform that action at this time.
0 commit comments