summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-app-overlay
diff options
context:
space:
mode:
authorRupinder <rupinsi1@in.ibm.com>2020-03-04 19:00:17 +0530
committerRupinder <rupinsi1@in.ibm.com>2020-03-04 19:00:22 +0530
commitd7b3c6dc9b68de285eb17a3d75ccd3c238c7ef8a (patch)
tree356838d715ecdadefcd62c4644df4581cd9cecee /ecomp-sdk/epsdk-app-overlay
parentd1cb62e4628dcc6a445b48de9f618e50e25475f4 (diff)
added test case for run component
Written test case for run.component.spec.ts Issue-ID: PORTAL-834 Change-Id: I80272e9b1f83d2768ebcfd03e144ea5268d7ff53 Signed-off-by: Rupinder<rupinsi1@in.ibm.com>
Diffstat (limited to 'ecomp-sdk/epsdk-app-overlay')
-rw-r--r--ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/run/run.component.spec.ts6
1 files changed, 5 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 82eda851..3aa4713f 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
@@ -27,8 +27,12 @@ describe('RunComponent', () => {
});
it('should test ngOnInit method', () => {
+ component.reportType = "Dashboard";
+ component.ngOnInit();
+ expect(component.stepNo).toEqual("4");
+
+ component.reportType = "test";
component.ngOnInit();
- component.reportType !== "Dashboard";
expect(component.stepNo).toEqual("8");
});