From: Rupinder Date: Mon, 27 Jan 2020 12:29:31 +0000 (+0530) Subject: Added test case for run-report-form-fields component X-Git-Tag: 3.0.0~97 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=2edccd7e8ef958d4891ba6de87a449daeb7593fe;p=portal%2Fsdk.git 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 --- 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"); + }) + + });