summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk
diff options
context:
space:
mode:
authorLorraine Welch <lb2391@att.com>2020-02-10 22:11:23 +0000
committerGerrit Code Review <gerrit@onap.org>2020-02-10 22:11:23 +0000
commit9cdfc67ee58ee02577d55ecbf7ed888abc127275 (patch)
tree6d358164cd38f5e80640f1c09a32c259ca8e6b87 /ecomp-sdk
parent6e27d3be6fce548230a215f8e930f90a63805afb (diff)
parent39dd8ad21676c8160f8444ff115d9226ef173300 (diff)
Merge "err in admin, run & header services resolved"
Diffstat (limited to 'ecomp-sdk')
-rw-r--r--ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/admin.service.spec.ts16
-rw-r--r--ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/run/run.service.spec.ts6
-rw-r--r--ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/shared/services/header/header.service.spec.ts2
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();