import { ComponentFixture , TestBed } from "@angular/core/testing" ; import { FitnessTrendInputsComponent } from "./fitness-trend-inputs.component" ; import { CoreModule } from "../../core/core.module" ; import { SharedModule } from "../../shared/shared.module" ; import { FitnessTrendModule } from "../fitness-trend.module" ; import { FitnessTrendComponent } from "../fitness-trend.component" ; describe ( "FitnessTrendInputsComponent" , ( ) => { let component ; let fixture ; beforeEach ( ( done ) => { TestBed . configureTestingModule ( { imports : [ CoreModule , SharedModule , FitnessTrendModule ] } ) . compileComponents ( ) ; done ( ) ; } ) ; beforeEach ( ( done ) => { fixture = TestBed . createComponent ( FitnessTrendInputsComponent ) ; component = fixture . componentInstance ; component . fitnessTrendConfigModel = FitnessTrendComponent . DEFAULT_CONFIG ; component . periodViewed = { from : new Date ( ) , to : new Date ( ) } ; fixture . detectChanges ( ) ; done ( ) ; } ) ; it ( "should create" , ( done ) => { expect ( component ) . toBeTruthy ( ) ; done ( ) ; } ) ; } ) ;