46a229bb67
Refactors the media file upload component into a shared component to be used in both normal pages and dialogs. A dialog was addes into the media file "edit" view to upload and set attachments on the fly.
26 lines
792 B
TypeScript
26 lines
792 B
TypeScript
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
|
|
import { MediaUploadContentComponent } from './media-upload-content.component';
|
|
import { E2EImportsModule } from 'e2e-imports.module';
|
|
|
|
describe('MediaUploadContentComponent', () => {
|
|
let component: MediaUploadContentComponent;
|
|
let fixture: ComponentFixture<MediaUploadContentComponent>;
|
|
|
|
beforeEach(async(() => {
|
|
TestBed.configureTestingModule({
|
|
imports: [E2EImportsModule]
|
|
}).compileComponents();
|
|
}));
|
|
|
|
beforeEach(() => {
|
|
fixture = TestBed.createComponent(MediaUploadContentComponent);
|
|
component = fixture.componentInstance;
|
|
fixture.detectChanges();
|
|
});
|
|
|
|
it('should create', () => {
|
|
expect(component).toBeTruthy();
|
|
});
|
|
});
|