From 41de53204e3808e29870da12e218fabc2a7f86f7 Mon Sep 17 00:00:00 2001 From: Indrijeet kumar Date: Wed, 4 Mar 2020 12:56:25 +0530 Subject: err resd in header-tabs & header-tabs-wrapper com errors resolved in header-tabs & header-tabs-wrapper components Issue-ID: PORTAL-813 Change-Id: Ia6c656f6d50217a2cabaf0f5416684e6a1450906 Signed-off-by: Indrijeet Kumar --- .../header-tabs-component/header-tabs.component.spec.ts | 7 ++++++- .../header-tabs-wrapper.component.spec.ts | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'ecomp-sdk/epsdk-app-overlay') diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/header-tabs-component/header-tabs.component.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/header-tabs-component/header-tabs.component.spec.ts index d297fa06..da392424 100644 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/header-tabs-component/header-tabs.component.spec.ts +++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/header-tabs-component/header-tabs.component.spec.ts @@ -1,6 +1,9 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { HeaderTabsComponent } from './header-tabs.component'; +import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; +import { HttpClientTestingModule } from '@angular/common/http/testing'; +import { RouterTestingModule } from '@angular/router/testing'; describe('MainComponentComponent', () => { let component: HeaderTabsComponent; @@ -8,7 +11,9 @@ describe('MainComponentComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ - declarations: [ HeaderTabsComponent ] + schemas:[CUSTOM_ELEMENTS_SCHEMA], + declarations: [ HeaderTabsComponent ], + imports:[HttpClientTestingModule,RouterTestingModule] }) .compileComponents(); })); diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/header-tabs-wrapper-component/header-tabs-wrapper.component.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/header-tabs-wrapper-component/header-tabs-wrapper.component.spec.ts index 60f464b8..9cd37313 100644 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/header-tabs-wrapper-component/header-tabs-wrapper.component.spec.ts +++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/header-tabs-wrapper-component/header-tabs-wrapper.component.spec.ts @@ -1,6 +1,8 @@ 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; @@ -8,7 +10,9 @@ describe('ReportsComponentComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ - declarations: [ HeaderTabsWrapperComponent ] + declarations: [ HeaderTabsWrapperComponent ], + schemas: [CUSTOM_ELEMENTS_SCHEMA], + imports:[RouterTestingModule] }) .compileComponents(); })); -- cgit 1.2.3-korg