summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLorraine Welch <lb2391@att.com>2020-02-27 15:15:17 +0000
committerGerrit Code Review <gerrit@onap.org>2020-02-27 15:15:17 +0000
commite9738ab54db5467da7bb61403b6f58f231becc79 (patch)
tree40d91f143c11a7e4d5f30c19cfe33ef505454dd0
parentf0522b251701684535880cbcc280b3171ce4059d (diff)
parent698cb92a5a5ebf2852ba1fe20feb0994874ca3cf (diff)
Merge "added test case for run component"
-rw-r--r--ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/run/run.component.spec.ts12
1 files changed, 11 insertions, 1 deletions
diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/run/run.component.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/run/run.component.spec.ts
index e9439dda..82eda851 100644
--- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/run/run.component.spec.ts
+++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/run/run.component.spec.ts
@@ -1,6 +1,8 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { RunComponent } from './run.component';
+import { HttpClientTestingModule } from '@angular/common/http/testing';
+import { RouterTestingModule } from '@angular/router/testing';
describe('RunComponent', () => {
let component: RunComponent;
@@ -8,7 +10,8 @@ describe('RunComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
- declarations: [ RunComponent ]
+ declarations: [ RunComponent ],
+ imports: [HttpClientTestingModule, RouterTestingModule]
})
.compileComponents();
}));
@@ -22,4 +25,11 @@ describe('RunComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should test ngOnInit method', () => {
+ component.ngOnInit();
+ component.reportType !== "Dashboard";
+ expect(component.stepNo).toEqual("8");
+ });
+
});