diff options
author | 2020-03-04 14:50:50 +0000 | |
---|---|---|
committer | 2020-03-04 14:50:50 +0000 | |
commit | 6a40e38546c0f37f1099f91f2cf231f9f1ee7df5 (patch) | |
tree | 1082d28095459a3e952a43741f35f09408e963bf /ecomp-sdk/epsdk-app-overlay | |
parent | 96c45ae7297b5a0b0e20ab171067521975c00ad3 (diff) | |
parent | d7b3c6dc9b68de285eb17a3d75ccd3c238c7ef8a (diff) |
Merge "added test case for run component"
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.ts | 6 |
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"); }); |