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