diff options
Diffstat (limited to 'ecomp-sdk/epsdk-app-overlay')
-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.ts | 17 |
1 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/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 ba690f17..a2870461 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 @@ -28,7 +28,20 @@ describe('FormFieldsComponent', () => { }) it('should test isLast functions', () =>{ - component.formFieldsListObj.length = 4; - expect(component.isLast(3)).toEqual(true); + component.formFieldsListObj = [1,2,3,4,5]; + let test: Boolean = component.isLast(3); + expect(test).toEqual(false); }) + + it('should test isFirst function', () => { + let test: Boolean = component.isFirst(0); + expect(test).toEqual(true); + }) + + it('should test ngDoCheck', () => { + component.sqlAsDefaultValue = true; + component.ngDoCheck(); + expect(component.showDefaultSQLOption).toEqual(true); + }) + }); |