diff options
author | 2020-01-27 17:59:31 +0530 | |
---|---|---|
committer | 2020-01-27 18:02:57 +0530 | |
commit | 2edccd7e8ef958d4891ba6de87a449daeb7593fe (patch) | |
tree | f00962e5b421dd06ea416535f062eb0969741d4c /ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp | |
parent | a9809b3355b5441a294ba23c436c43b003d0cded (diff) |
Added test case for run-report-form-fields component
Written test cases for run-report-form-fields component
Issue-ID: PORTAL-808
Change-Id: If730e2ac5382d63a2a9b8a6b9eced1da6ec51eaf
Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
Diffstat (limited to 'ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp')
-rw-r--r-- | ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/run/run-report-form-fields/run-report-form-fields.component.spec.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/run/run-report-form-fields/run-report-form-fields.component.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/run/run-report-form-fields/run-report-form-fields.component.spec.ts index a273f9e0..55161812 100644 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/run/run-report-form-fields/run-report-form-fields.component.spec.ts +++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/run/run-report-form-fields/run-report-form-fields.component.spec.ts @@ -22,4 +22,18 @@ describe('RunReportFormFieldsComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should test ngOnInit method', () =>{ + component.ngOnInit(); + expect(component.showSpinner).toEqual(true); + expect(component.navigateToRun).toEqual(false); + }); + + it('should test QueryString method', () =>{ + component.directCallQueryParams == "test"; + component.getQueryString(); + expect(component.getQueryString).toEqual("test"); + }) + + }); |