import { async , ComponentFixture , TestBed } from '@angular/core/testing' ; import { NoopAnimationsModule } from '@angular/platform-browser/animations' ; import { TranslateModule } from '@ngx-translate/core' ; import { MAT_DIALOG_DATA } from '@angular/material' ; import { AppMaterialModule } from '../../app-common.module' ; import { ShareDialogComponent } from './share-dialog.component' ; describe ( 'ShareDialogComponent' , ( ) => { let component ; let fixture ; beforeEach ( async ( ( ) => { TestBed . configureTestingModule ( { imports : [ AppMaterialModule , NoopAnimationsModule , TranslateModule . forRoot ( ) , ] , providers : [ { provide : MAT_DIALOG_DATA , useValue : '' } , ] , declarations : [ ShareDialogComponent ] , } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( ShareDialogComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;