From 57d7a80112d0640524f5c6da7fba0990a220966d Mon Sep 17 00:00:00 2001 From: Indrijeet kumar Date: Mon, 10 Feb 2020 17:20:56 +0530 Subject: err in definition & report-list services resolved errors in definition & report-list services resolved Issue-ID: PORTAL-813 Change-Id: I8953b579b99cec75224db04477b30d0cbd5a36ad Signed-off-by: Indrijeet Kumar --- .../Report_List/Report/definition/definition.service.spec.ts | 6 +++++- .../src/app/pages/analytics/Report_List/report-list.service.spec.ts | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/definition/definition.service.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/definition/definition.service.spec.ts index 10fd5830..1c56d381 100644 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/definition/definition.service.spec.ts +++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/definition/definition.service.spec.ts @@ -1,9 +1,13 @@ import { TestBed } from '@angular/core/testing'; import { DefinitionService } from './definition.service'; +import { HttpClientTestingModule } from '@angular/common/http/testing'; describe('DefinitionServiceService', () => { - beforeEach(() => TestBed.configureTestingModule({})); + beforeEach(() => + TestBed.configureTestingModule({ + imports: [HttpClientTestingModule] + })); it('should be created', () => { const service: DefinitionService = TestBed.get(DefinitionService); diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/report-list.service.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/report-list.service.spec.ts index 7945cc73..03804c27 100644 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/report-list.service.spec.ts +++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/report-list.service.spec.ts @@ -1,9 +1,13 @@ import { TestBed } from '@angular/core/testing'; import { ReportListService } from './report-list.service'; +import { HttpClientTestingModule } from '@angular/common/http/testing'; describe('ReportListService', () => { - beforeEach(() => TestBed.configureTestingModule({})); + beforeEach(() => + TestBed.configureTestingModule({ + imports: [HttpClientTestingModule] + })); it('should be created', () => { const service: ReportListService = TestBed.get(ReportListService); -- cgit 1.2.3-korg