import { async , ComponentFixture , TestBed } from '@angular/core/testing' ; import { HomePageComponent } from './home-page.component' ; import { RouterTestingModule } from '@angular/router/testing' ; describe ( 'HomePageComponent' , ( ) => { let component ; let fixture ; beforeEach ( async ( ( ) => { TestBed . configureTestingModule ( { declarations : [ HomePageComponent ] , } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( HomePageComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;