diff options
author | Indrijeet kumar <indriku1@in.ibm.com> | 2020-02-10 17:33:38 +0530 |
---|---|---|
committer | Indrijeet kumar <indriku1@in.ibm.com> | 2020-02-10 17:35:36 +0530 |
commit | 39dd8ad21676c8160f8444ff115d9226ef173300 (patch) | |
tree | 7026ad51d798c079f5b901832d74083438f8acd5 /ecomp-sdk/epsdk-app-overlay/src | |
parent | 57d7a80112d0640524f5c6da7fba0990a220966d (diff) |
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 <indriku1@in.ibm.com>
Diffstat (limited to 'ecomp-sdk/epsdk-app-overlay/src')
3 files changed, 20 insertions, 4 deletions
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(); |