import { waitForAsync , ComponentFixture , TestBed } from '@angular/core/testing' ; import { RouterTestingModule } from '@angular/router/testing' ; import { CoreModule } from '@ngx-starter-kit/core' ; import { ScrollToTopModule } from '@ngx-starter-kit/scroll-to-top' ; import { SharedModule } from '@ngx-starter-kit/shared' ; import { ThemePickerModule } from '@ngx-starter-kit/theme-picker' ; import { FooterComponent } from '../../components/footer/footer.component' ; import { HeaderComponent } from '../../components/header/header.component' ; import { HomeLayoutComponent } from './home-layout.component' ; describe ( 'HomeLayoutComponent' , ( ) => { let component ; let fixture ; beforeEach ( waitForAsync ( ( ) => { TestBed . configureTestingModule ( { imports : [ SharedModule , CoreModule , ScrollToTopModule , ThemePickerModule , RouterTestingModule ] , declarations : [ HomeLayoutComponent , HeaderComponent , FooterComponent ] , } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( HomeLayoutComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;