Skip to content
Snippets Groups Projects

Disable file attachments for epics

Merged Clement Ho requested to merge disable-attachment-epic into master
All threads resolved!
@@ -9,24 +9,28 @@ describe('toolbar', () => {
markdownDocsPath: '',
};
beforeEach(() => {
vm = mountComponent(Toolbar, props);
});
afterEach(() => {
vm.$destroy();
});
describe('canAttachFile', () => {
it('should render uploading-container by default', () => {
describe('user can attach file', () => {
beforeEach(() => {
vm = mountComponent(Toolbar, props);
});
it('should render uploading-container', () => {
expect(vm.$el.querySelector('.uploading-container')).not.toBeNull();
});
});
it('should not render uploading-container when canAttachFile is false', () => {
describe('user cannot attach file', () => {
beforeEach(() => {
vm = mountComponent(Toolbar, Object.assign({}, props, {
canAttachFile: false,
}));
});
it('should not render uploading-container', () => {
expect(vm.$el.querySelector('.uploading-container')).toBeNull();
});
});
Loading