diff options
Diffstat (limited to 'ecomp-sdk/epsdk-app-overlay/src/main')
2 files changed, 15 insertions, 2 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"); }); diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/report-list.component.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/report-list.component.spec.ts index 359bee9f..2c01ff14 100644 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/report-list.component.spec.ts +++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/report-list.component.spec.ts @@ -93,5 +93,14 @@ describe('ReportListComponent', () => { component.close(); expect(component.showDialog).toEqual(true); expect(component.closable).toEqual(false); - }) + }); + + it('should test deleteReport method', () => { + component.deleteReport(); + }); + + it('should test openReportSchedule method', () => { + component.openReportSchedule("test"); + }); + });
\ No newline at end of file |