import { async , ComponentFixture , TestBed } from '@angular/core/testing' ; import { MatDialog } from '@angular/material/dialog' ; import { NoopAnimationsModule } from '@angular/platform-browser/animations' ; import { SharedModule } from '@nx-mean-starter/shared' ; import { LayoutComponent } from './layout.component' ; describe ( 'LayoutComponent' , ( ) => { let component ; let fixture ; beforeEach ( async ( ( ) => { TestBed . configureTestingModule ( { imports : [ NoopAnimationsModule , SharedModule ] , declarations : [ LayoutComponent ] , providers : [ { provide : MatDialog , useValue : { open : jest . fn ( ) } } ] , } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( LayoutComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;