import { HttpClientTestingModule } from '@angular/common/http/testing' ; import { ComponentFixture , TestBed } from '@angular/core/testing' ; import { RouterTestingModule } from '@angular/router/testing' ; import { BreadcrumbComponent } from './breadcrumb.component' ; import { BreadcrumbService } from './breadcrumb.service' ; describe ( 'BreadcrumbComponent' , ( ) => { let component ; let fixture ; beforeEach ( async ( ) => { await TestBed . configureTestingModule ( { declarations : [ BreadcrumbComponent ] , imports : [ RouterTestingModule , HttpClientTestingModule ] , providers : [ BreadcrumbService ] } ) . compileComponents ( ) ; } ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( BreadcrumbComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;