import { waitForAsync , ComponentFixture , TestBed } from '@angular/core/testing' ; import { HttpClientTestingModule } from '@angular/common/http/testing' ; import { SharedModule } from '@shared' ; import { HomeComponent } from './home.component' ; import { QuoteService } from './quote.service' ; describe ( 'HomeComponent' , ( ) => { let component ; let fixture ; beforeEach ( waitForAsync ( ( ) => { TestBed . configureTestingModule ( { imports : [ SharedModule , HttpClientTestingModule ] , declarations : [ HomeComponent ] , providers : [ QuoteService ] } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( HomeComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;