1
1
import { Component , DebugElement , Input , TemplateRef , ViewChild } from '@angular/core' ;
2
- import { async , ComponentFixture , fakeAsync , TestBed , tick } from '@angular/core/testing' ;
2
+ import { ComponentFixture , fakeAsync , TestBed , tick , waitForAsync } from '@angular/core/testing' ;
3
3
import { By } from '@angular/platform-browser' ;
4
4
import { BrowserDynamicTestingModule } from '@angular/platform-browser-dynamic/testing' ;
5
5
import { NoopAnimationsModule } from '@angular/platform-browser/animations' ;
@@ -78,7 +78,7 @@ describe('dialog', () => {
78
78
let component : TestDialogComponent ;
79
79
let domHelper : DomHelper < TestDialogComponent > ;
80
80
81
- beforeEach ( async ( ( ) => {
81
+ beforeEach ( waitForAsync ( ( ) => {
82
82
TestBed . configureTestingModule ( {
83
83
imports : [ ModalModule , NoopAnimationsModule , ButtonModule ] ,
84
84
declarations : [ TestDialogComponent , ModalTestComponent ] ,
@@ -88,7 +88,7 @@ describe('dialog', () => {
88
88
89
89
} ) . overrideModule ( BrowserDynamicTestingModule , {
90
90
set : {
91
-
91
+
92
92
}
93
93
} ) . compileComponents ( ) ;
94
94
} ) ) ;
@@ -362,14 +362,14 @@ describe('modal', () => {
362
362
let component : TestModalComponent ;
363
363
let domHelper : DomHelper < TestModalComponent > ;
364
364
365
- beforeEach ( async ( ( ) => {
365
+ beforeEach ( waitForAsync ( ( ) => {
366
366
TestBed . configureTestingModule ( {
367
367
imports : [ ModalModule , NoopAnimationsModule , ButtonModule ] ,
368
368
declarations : [ TestModalComponent , OpenModalComponent ] ,
369
369
providers : [ ModalService ] ,
370
370
} ) . overrideModule ( BrowserDynamicTestingModule , {
371
371
set : {
372
-
372
+
373
373
}
374
374
} ) . compileComponents ( ) ;
375
375
} ) ) ;
@@ -414,14 +414,14 @@ describe('modal', () => {
414
414
let component : TestModalComponent ;
415
415
let domHelper : DomHelper < TestModalComponent > ;
416
416
417
- beforeEach ( async ( ( ) => {
417
+ beforeEach ( waitForAsync ( ( ) => {
418
418
TestBed . configureTestingModule ( {
419
419
imports : [ ModalModule , NoopAnimationsModule , ButtonModule ] ,
420
420
declarations : [ TestModalComponent , ModalAlertComponent ] ,
421
421
providers : [ ModalService ] ,
422
422
} ) . overrideModule ( BrowserDynamicTestingModule , {
423
423
set : {
424
-
424
+
425
425
}
426
426
} ) . compileComponents ( ) ;
427
427
} ) ) ;
0 commit comments