import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { HeaderTabsWrapperComponent } from './header-tabs-wrapper.component'; import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; import { RouterTestingModule } from '@angular/router/testing'; describe('ReportsComponentComponent', () => { let component: HeaderTabsWrapperComponent; let fixture: ComponentFixture; beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [ HeaderTabsWrapperComponent ], schemas: [CUSTOM_ELEMENTS_SCHEMA], imports:[RouterTestingModule] }) .compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(HeaderTabsWrapperComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });