ba690f173a79c780e2ce9de174c3ba3078df557e
[portal/sdk.git] /
1 import { async, ComponentFixture, TestBed } from '@angular/core/testing';
2
3 import { FormFieldsComponent } from './form-fields.component';
4
5 describe('FormFieldsComponent', () => {
6   let component: FormFieldsComponent;
7   let fixture: ComponentFixture<FormFieldsComponent>;
8
9   beforeEach(async(() => {
10     TestBed.configureTestingModule({
11       declarations: [ FormFieldsComponent ]
12     })
13     .compileComponents();
14   }));
15
16   beforeEach(() => {
17     fixture = TestBed.createComponent(FormFieldsComponent);
18     component = fixture.componentInstance;
19     fixture.detectChanges();
20   }); 
21
22   it('should create', () => {
23     expect(component).toBeTruthy();
24   });
25
26   it('should test ngOnInit function', () => {
27     component.ngOnInit();
28   })
29
30   it('should test isLast functions', () =>{
31     component.formFieldsListObj.length = 4;
32     expect(component.isLast(3)).toEqual(true);
33   })
34 });