diff --git a/schematics/component/files/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts b/schematics/component/files/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts index bea487d..4e836c2 100644 --- a/schematics/component/files/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts +++ b/schematics/component/files/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { IonicModule } from '@ionic/angular'; import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component'; @@ -7,7 +7,7 @@ describe('<%= classify(name) %>Component', () => { let component: <%= classify(name) %>Component; let fixture: ComponentFixture<<%= classify(name) %>Component>; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ declarations: [ <%= classify(name) %>Component ], imports: [IonicModule.forRoot()] diff --git a/schematics/page/files/__name@dasherize@if-flat__/__name@dasherize__.page.spec.ts b/schematics/page/files/__name@dasherize@if-flat__/__name@dasherize__.page.spec.ts index 20422d0..f9c2bde 100644 --- a/schematics/page/files/__name@dasherize@if-flat__/__name@dasherize__.page.spec.ts +++ b/schematics/page/files/__name@dasherize@if-flat__/__name@dasherize__.page.spec.ts @@ -1,4 +1,4 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { IonicModule } from '@ionic/angular'; import { <%= classify(name) %>Page } from './<%= dasherize(name) %>.page'; @@ -7,7 +7,7 @@ describe('<%= classify(name) %>Page', () => { let component: <%= classify(name) %>Page; let fixture: ComponentFixture<<%= classify(name) %>Page>; - beforeEach(async(() => { + beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ declarations: [ <%= classify(name) %>Page ], imports: [IonicModule.forRoot()]