import { ComponentFixture , TestBed } from '@angular/core/testing' ; import { MatDialogModule , MatDialogRef } from '@angular/material/dialog' ; import { ConfirmationDialogComponent } from './confirmation-dialog.component' ; describe ( 'ConfirmationDialogComponent' , ( ) => { let component ; let fixture ; beforeEach ( async ( ) => { await TestBed . configureTestingModule ( { declarations : [ ConfirmationDialogComponent ] , imports : [ MatDialogModule ] , providers : [ MatDialogRef ] } ) . compileComponents ( ) ; } ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( ConfirmationDialogComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;