Skip to content

Commit 2185e50

Browse files
authored
feat(test): update async to waitForAsync (#434)
1 parent 24c19ef commit 2185e50

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

schematics/component/files/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
1+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
22
import { IonicModule } from '@ionic/angular';
33

44
import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component';
@@ -7,7 +7,7 @@ describe('<%= classify(name) %>Component', () => {
77
let component: <%= classify(name) %>Component;
88
let fixture: ComponentFixture<<%= classify(name) %>Component>;
99

10-
beforeEach(async(() => {
10+
beforeEach(waitForAsync(() => {
1111
TestBed.configureTestingModule({
1212
declarations: [ <%= classify(name) %>Component ],
1313
imports: [IonicModule.forRoot()]

schematics/page/files/__name@dasherize@if-flat__/__name@dasherize__.page.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
1+
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
22
import { IonicModule } from '@ionic/angular';
33

44
import { <%= classify(name) %>Page } from './<%= dasherize(name) %>.page';
@@ -7,7 +7,7 @@ describe('<%= classify(name) %>Page', () => {
77
let component: <%= classify(name) %>Page;
88
let fixture: ComponentFixture<<%= classify(name) %>Page>;
99

10-
beforeEach(async(() => {
10+
beforeEach(waitForAsync(() => {
1111
TestBed.configureTestingModule({
1212
declarations: [ <%= classify(name) %>Page ],
1313
imports: [IonicModule.forRoot()]

0 commit comments

Comments
 (0)