import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from '@angular/core'; import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ConfigService } from '@arrow/bom/config'; import { BomCpnComponent } from './bom-cpn.component'; describe('BomCpnComponent', () => { let component: BomCpnComponent; let fixture: ComponentFixture; beforeEach(async(() => { const configServiceSpyObj = jasmine.createSpyObj('ConfigService', ['isArrowcom']); TestBed.configureTestingModule({ schemas: [NO_ERRORS_SCHEMA, CUSTOM_ELEMENTS_SCHEMA], declarations: [BomCpnComponent], providers: [ { provide: ConfigService, useValue: configServiceSpyObj }, ] }).compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(BomCpnComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });