1- import { async , ComponentFixture , TestBed } from '@angular/core/testing' ;
1+ import { ComponentFixture , TestBed , waitForAsync } from '@angular/core/testing' ;
22import { MAT_DIALOG_DATA , MatDialogModule , MatDialogRef } from '@angular/material/dialog' ;
33import { defaultPageScrollConfig , NGXPS_CONFIG } from 'ngx-page-scroll-core' ;
44
@@ -10,14 +10,14 @@ describe('ScrollDialogComponent', () => {
1010 let component : ScrollDialogComponent ;
1111 let fixture : ComponentFixture < ScrollDialogComponent > ;
1212
13- beforeEach ( async ( ( ) => {
13+ beforeEach ( waitForAsync ( ( ) => {
1414 TestBed . configureTestingModule ( {
1515 declarations : [ ScrollDialogComponent , DummyCardComponent ] ,
1616 imports : [ MatDialogModule , MatCardModule ] ,
1717 providers : [
18- { provide : MAT_DIALOG_DATA , useValue : { } } ,
19- { provide : MatDialogRef , useValue : { } } ,
20- { provide : NGXPS_CONFIG , useValue : defaultPageScrollConfig } ,
18+ { provide : MAT_DIALOG_DATA , useValue : { } } ,
19+ { provide : MatDialogRef , useValue : { } } ,
20+ { provide : NGXPS_CONFIG , useValue : defaultPageScrollConfig } ,
2121 ] ,
2222 } )
2323 . compileComponents ( ) ;
0 commit comments