import { async , ComponentFixture , TestBed } from '@angular/core/testing' ; import { MatTableModule } from '@angular/material/table' ; import { RouterModule } from '@angular/router' ; import { RouterTestingModule } from '@angular/router/testing' ; import { MockComponent } from 'ng2-mock-component' ; import { ShakemapSummaryComponent } from './shakemap-summary.component' ; describe ( 'ShakeMapSummaryComponent' , ( ) => { let component ; let fixture ; beforeEach ( async ( ( ) => { TestBed . configureTestingModule ( { declarations : [ ShakemapSummaryComponent , MockComponent ( { inputs : [ 'intensity' ] , selector : 'shared-mmi' } ) , MockComponent ( { inputs : [ 'product' ] , selector : 'shared-product-attribution' } ) , MockComponent ( { inputs : [ 'TITLE' ] , selector : 'shared-preferred-check' } ) ] , imports : [ MatTableModule , RouterModule , RouterTestingModule ] } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( ShakemapSummaryComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;