import { async , ComponentFixture , TestBed , inject } from '@angular/core/testing' ; import { SimpleDialogComponent } from './simple-dialog.component' ; import { commonTestingModules } from '../common.testing' ; import { MatDialogRef , MAT_DIALOG_DATA } from '@angular/material' ; describe ( 'SimpleDialogComponent' , ( ) => { let component ; let fixture ; beforeEach ( async ( ( ) => { TestBed . configureTestingModule ( { imports : commonTestingModules , providers : [ { provide : MatDialogRef , useValue : { } , } , { provide : MAT_DIALOG_DATA , useValue : { } , } , ] , declarations : [ SimpleDialogComponent ] , } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( SimpleDialogComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;