From 39dd8ad21676c8160f8444ff115d9226ef173300 Mon Sep 17 00:00:00 2001 From: Indrijeet kumar Date: Mon, 10 Feb 2020 17:33:38 +0530 Subject: err in admin, run & header services resolved errors in admin, run & header services resolved Issue-ID: PORTAL-813 Change-Id: I245f83b770597ab2400409329121fce35f471405 Signed-off-by: Indrijeet Kumar --- .../ngapp/src/app/pages/admin/admin.service.spec.ts | 16 +++++++++++++--- .../analytics/Report_List/Report/run/run.service.spec.ts | 6 +++++- .../app/shared/services/header/header.service.spec.ts | 2 ++ 3 files changed, 20 insertions(+), 4 deletions(-) (limited to 'ecomp-sdk') diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/admin.service.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/admin.service.spec.ts index 27aad032..4892e72a 100644 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/admin.service.spec.ts +++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/admin.service.spec.ts @@ -1,9 +1,19 @@ -import { TestBed } from '@angular/core/testing'; - +import { TestBed, async } from '@angular/core/testing'; import { AdminService } from './admin.service'; +import { HttpClientTestingModule } from '@angular/common/http/testing'; describe('AdminService', () => { - beforeEach(() => TestBed.configureTestingModule({})); + beforeEach(() => + TestBed.configureTestingModule({ + imports: [HttpClientTestingModule] + })); + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [] + }) + .compileComponents(); + })); it('should be created', () => { const service: AdminService = TestBed.get(AdminService); diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/run/run.service.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/run/run.service.spec.ts index 4c3e9fdc..b50fc923 100644 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/run/run.service.spec.ts +++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/run/run.service.spec.ts @@ -1,9 +1,13 @@ import { TestBed } from '@angular/core/testing'; import { RunService } from './run.service'; +import { HttpClientTestingModule } from '@angular/common/http/testing'; describe('RunService', () => { - beforeEach(() => TestBed.configureTestingModule({})); + beforeEach(() => + TestBed.configureTestingModule({ + imports: [HttpClientTestingModule] + })); it('should be created', () => { const service: RunService = TestBed.get(RunService); diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/shared/services/header/header.service.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/shared/services/header/header.service.spec.ts index dc987eff..c93a83fb 100644 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/shared/services/header/header.service.spec.ts +++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/shared/services/header/header.service.spec.ts @@ -8,6 +8,8 @@ describe('HeaderService', () => { imports:[HttpClientModule] })); + + it('should be created', () => { const service: HeaderService = TestBed.get(HeaderService); expect(service).toBeTruthy(); -- cgit 1.2.3-korg