import { async , ComponentFixture , TestBed } from '@angular/core/testing' ; import { RouterTestingModule } from '@angular/router/testing' ; import { TranslatePipe } from '@ngx-translate/core' ; import { MockPipes } from 'ng-mocks' ; import { FooterNavComponent } from './footer-nav.component' ; describe ( 'FooterNavComponent' , ( ) => { let component ; let fixture ; beforeEach ( async ( ( ) => { return TestBed . configureTestingModule ( { imports : [ RouterTestingModule ] , declarations : [ FooterNavComponent , MockPipes ( TranslatePipe ) ] } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( FooterNavComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;