diff options
author | Muni Mohan Kunchi <munmohan@att.com> | 2020-02-06 13:51:45 -0500 |
---|---|---|
committer | Muni Mohan Kunchi <munmohan@att.com> | 2020-02-06 13:54:22 -0500 |
commit | e3636b96e9938cb89bb90672cf70fff3ae790186 (patch) | |
tree | 89dd47a4a95150f70e83556a3280cf4cd02daf89 /ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/form-fields | |
parent | 35d028274a61ce8e77a9fa409877d93d0fce05a8 (diff) |
adding sdk changes
adding sdk changes
Issue-ID: PORTAL-830
Signed-off-by: Muni Mohan Kunchi <munmohan@att.com>
Change-Id: I0c99d3ab15fcf4c3b34d84658b64114dadbe2577
Diffstat (limited to 'ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/form-fields')
-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 | 49 |
1 files changed, 4 insertions, 45 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 f491f372..42544a72 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 @@ -3,11 +3,11 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { FormFieldsComponent } from './form-fields.component'; describe('FormFieldsComponent', () => { - let component: FormFieldsComponent; + let component: FormFieldsComponent; let fixture: ComponentFixture<FormFieldsComponent>; - + beforeEach(async(() => { - TestBed.configureTestingModule({ + TestBed.configureTestingModule({ declarations: [ FormFieldsComponent ] }) .compileComponents(); @@ -17,50 +17,9 @@ 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 = [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); - }); - - 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', () => { - component.openSnackBar("Just", "for testing"); - expect(component.openSnackBar).toHaveBeenCalled(); - }) - }); |