import { async , ComponentFixture , TestBed } from '@angular/core/testing' ; import { MatExpansionModule } from '@angular/material/expansion' ; import { MatTableModule } from '@angular/material/table' ; import { FormatterService } from '@core/formatter.service' ; import { MockPipe } from '../../../mock-pipe' ; import { OutputComponent } from './output.component' ; describe ( 'OutputComponent' , ( ) => { let component ; let fixture ; beforeEach ( async ( ( ) => { const formatter = { } ; TestBed . configureTestingModule ( { declarations : [ OutputComponent , MockPipe ( 'sharedDegrees' ) , MockPipe ( 'sharedNumber' ) , MockPipe ( 'sharedUnits' ) ] , imports : [ MatTableModule , MatExpansionModule ] , providers : [ { provide : FormatterService , useValue : formatter } ] } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( OutputComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;