import { async , ComponentFixture , TestBed } from '@angular/core/testing' ; import { MockComponent } from 'ng2-mock-component' ; import { OptionalComponent } from './optional.component' ; import { KeysPipe } from '@shared/keys.pipe' ; describe ( 'OptionalComponent' , ( ) => { let component ; let fixture ; beforeEach ( async ( ( ) => { TestBed . configureTestingModule ( { declarations : [ OptionalComponent , KeysPipe , MockComponent ( { inputs : [ 'label' , 'labels' , 'model' , 'multiSelect' , 'name' , 'options' ] , selector : 'tell-us-question' } ) ] } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( OptionalComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;