import { async , ComponentFixture , TestBed } from '@angular/core/testing' ; import { FooterComponent } from './footer.component' ; import { RouterTestingModule } from "@angular/router/testing" ; import { CUSTOM_ELEMENTS_SCHEMA } from "@angular/core" ; import { SharedModule } from "../shared.module" ; describe ( 'FooterComponent' , ( ) => { let component ; let fixture ; beforeEach ( async ( ( ) => { TestBed . configureTestingModule ( { imports : [ SharedModule , RouterTestingModule ] , schemas : [ CUSTOM_ELEMENTS_SCHEMA ] } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( FooterComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should be created' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;