import { async , ComponentFixture , TestBed } from '@angular/core/testing' ; import { HeaderComponent } from './header.component' ; import { AuthService } from "../../services/auth.service" ; import { UserService } from "../../services/user.service" ; import { RouterTestingModule } from "@angular/router/testing" ; import { CUSTOM_ELEMENTS_SCHEMA } from "@angular/core" ; import { SharedModule } from "../shared.module" ; describe ( 'HeaderComponent' , ( ) => { let component ; let fixture ; beforeEach ( async ( ( ) => { TestBed . configureTestingModule ( { imports : [ SharedModule , RouterTestingModule ] , providers : [ AuthService , UserService ] , schemas : [ CUSTOM_ELEMENTS_SCHEMA ] } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( HeaderComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should be created' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;