沈斌
2017-12-15 93b9d0c00b87079f97e56a63a2e38a7ea5bac4d3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { TestBed, TestModuleMetadata } from '@angular/core/testing';
import { setUpTestBed } from '../../../../testing/common.spec';
 
import { UploadComponent } from './upload.component';
import { FileUploadModule } from 'ng2-file-upload';
 
describe('Component: Upload', () => {
    setUpTestBed(<TestModuleMetadata>{
        declarations: [ UploadComponent ],
        imports: [FileUploadModule]
    });
 
    it('should create an instance', () => {
        const fixture = TestBed.createComponent(UploadComponent);
        const comp = fixture.debugElement.componentInstance;
        expect(comp).toBeTruthy();
    });
});