From d7b3c6dc9b68de285eb17a3d75ccd3c238c7ef8a Mon Sep 17 00:00:00 2001 From: Rupinder Date: Wed, 4 Mar 2020 19:00:17 +0530 Subject: 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 --- .../pages/analytics/Report_List/Report/run/run.component.spec.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ecomp-sdk/epsdk-app-overlay') 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"); }); -- cgit 1.2.3-korg