import { async , ComponentFixture , TestBed } from '@angular/core/testing' ; import { FileUploadModule } from 'ng2-file-upload' ; import { UploadFileComponent } from './upload-file.component' ; describe ( 'UploadFileComponent' , ( ) => { let component ; let fixture ; beforeEach ( async ( ( ) => { TestBed . configureTestingModule ( { imports : [ FileUploadModule ] , declarations : [ UploadFileComponent ] } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( UploadFileComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should create' , ( ) => { expect ( component ) . toBeTruthy ( ) ; expect ( component . uploader ) . toBeTruthy ( ) ; } ) ; } ) ;