summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRupinder <rupinsi1@in.ibm.com>2020-01-25 13:19:56 +0530
committerRupinder <rupinsi1@in.ibm.com>2020-01-25 13:21:13 +0530
commit877e33480259adcf3cce978bc0ec2599e9563fbd (patch)
treef874b539bd3ad7f764c448a5cafc69b56a317852
parent612a7f2f661763d5933274d8e62a672f01e69971 (diff)
Added test case for form-field component
Written test cases for form-field component Issue-ID: PORTAL-808 Change-Id: I3b5ce9c53b0203ca357b2601b013dbe2a9c6b9fe Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
-rw-r--r--ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/form-fields/form-fields.component.spec.ts18
1 files changed, 18 insertions, 0 deletions
diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/form-fields/form-fields.component.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/form-fields/form-fields.component.spec.ts
index a2870461..eeb76e26 100644
--- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/form-fields/form-fields.component.spec.ts
+++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/form-fields/form-fields.component.spec.ts
@@ -44,4 +44,22 @@ describe('FormFieldsComponent', () => {
expect(component.showDefaultSQLOption).toEqual(true);
})
+ it('should test close function', () => {
+ component.close();
+ expect(component.closable).toEqual(false);
+ });
+
+ it('should test closeValidateModal', () => {
+ component.closeValidateModal();
+ expect(component.showSpinner).toEqual(false);
+ });
+
+ it('should test openDialog method', () => {
+ expect(component.openDialog()).toHaveBeenCalled;
+ });
+
+ it('should test openSnackBar method', () => {
+ expect(component.openSnackBar("Just", "for testing")).toHaveBeenCalled;
+ })
+
});