summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk
diff options
context:
space:
mode:
authorRupinder <rupinsi1@in.ibm.com>2020-01-24 16:57:54 +0530
committerRupinder <rupinsi1@in.ibm.com>2020-01-24 16:59:00 +0530
commit3296f8d0d530dea510e3ad65bec0e27c3f52037f (patch)
tree12159e5d1e879f311608199dac2182302085b53b /ecomp-sdk
parentf7428eb4b2278d1f8b8922b3d75f788e05ded278 (diff)
Added test cases for form-field component
Written test cases for form-field component Issue-ID: PORTAL-808 Change-Id: I2a2f8ced127efe588929fa2caf83a9ba58ae0376 Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
Diffstat (limited to 'ecomp-sdk')
-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.ts11
1 files changed, 10 insertions, 1 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 42544a72..ba690f17 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
@@ -17,9 +17,18 @@ describe('FormFieldsComponent', () => {
fixture = TestBed.createComponent(FormFieldsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
- });
+ });
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should test ngOnInit function', () => {
+ component.ngOnInit();
+ })
+
+ it('should test isLast functions', () =>{
+ component.formFieldsListObj.length = 4;
+ expect(component.isLast(3)).toEqual(true);
+ })
});