Written test cases for run-report-form-fields component
Issue-ID: PORTAL-808
Change-Id: If730e2ac5382d63a2a9b8a6b9eced1da6ec51eaf
Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
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");
+ })
+
+
});