added test case for run component 90/102990/1
authorRupinder <rupinsi1@in.ibm.com>
Wed, 4 Mar 2020 13:30:17 +0000 (19:00 +0530)
committerRupinder <rupinsi1@in.ibm.com>
Wed, 4 Mar 2020 13:30:22 +0000 (19:00 +0530)
Written test case for run.component.spec.ts

Issue-ID: PORTAL-834
Change-Id: I80272e9b1f83d2768ebcfd03e144ea5268d7ff53
Signed-off-by: Rupinder<rupinsi1@in.ibm.com>
ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/run/run.component.spec.ts

index 82eda85..3aa4713 100644 (file)
@@ -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");
   });