Commit 7e04dfdc authored by Mike Greiling's avatar Mike Greiling

Merge branch 'xanf-remove-attachToDocument-196763' into 'master'

Remove useless attachToDocument usage in spec/frontend/vue_shared

Closes #196763

See merge request gitlab-org/gitlab!23041
parents 020463f2 e4d3c39b
...@@ -18,7 +18,6 @@ describe('Changed file icon', () => { ...@@ -18,7 +18,6 @@ describe('Changed file icon', () => {
showTooltip: true, showTooltip: true,
...props, ...props,
}, },
attachToDocument: true,
}); });
}; };
......
...@@ -9,7 +9,6 @@ describe('clipboard button', () => { ...@@ -9,7 +9,6 @@ describe('clipboard button', () => {
const createWrapper = propsData => { const createWrapper = propsData => {
wrapper = shallowMount(ClipboardButton, { wrapper = shallowMount(ClipboardButton, {
propsData, propsData,
attachToDocument: true,
}); });
}; };
......
...@@ -17,7 +17,6 @@ describe('Commit component', () => { ...@@ -17,7 +17,6 @@ describe('Commit component', () => {
const createComponent = propsData => { const createComponent = propsData => {
wrapper = shallowMount(CommitComponent, { wrapper = shallowMount(CommitComponent, {
propsData, propsData,
attachToDocument: true,
}); });
}; };
......
...@@ -17,7 +17,6 @@ describe('IssueAssigneesComponent', () => { ...@@ -17,7 +17,6 @@ describe('IssueAssigneesComponent', () => {
assignees: mockAssigneesList, assignees: mockAssigneesList,
...props, ...props,
}, },
attachToDocument: true,
}); });
vm = wrapper.vm; // eslint-disable-line vm = wrapper.vm; // eslint-disable-line
}; };
......
...@@ -13,7 +13,6 @@ const createComponent = (milestone = mockMilestone) => { ...@@ -13,7 +13,6 @@ const createComponent = (milestone = mockMilestone) => {
propsData: { propsData: {
milestone, milestone,
}, },
attachToDocument: true,
}); });
}; };
......
...@@ -31,7 +31,6 @@ describe('RelatedIssuableItem', () => { ...@@ -31,7 +31,6 @@ describe('RelatedIssuableItem', () => {
beforeEach(() => { beforeEach(() => {
wrapper = mount(RelatedIssuableItem, { wrapper = mount(RelatedIssuableItem, {
slots, slots,
attachToDocument: true,
propsData: props, propsData: props,
}); });
}); });
......
...@@ -12,7 +12,6 @@ describe('Markdown field header component', () => { ...@@ -12,7 +12,6 @@ describe('Markdown field header component', () => {
previewMarkdown: false, previewMarkdown: false,
...props, ...props,
}, },
attachToDocument: true,
}); });
}; };
......
...@@ -17,7 +17,6 @@ describe('Suggestion Diff component', () => { ...@@ -17,7 +17,6 @@ describe('Suggestion Diff component', () => {
...DEFAULT_PROPS, ...DEFAULT_PROPS,
...props, ...props,
}, },
attachToDocument: true,
}); });
}; };
......
...@@ -16,7 +16,6 @@ describe('modal copy button', () => { ...@@ -16,7 +16,6 @@ describe('modal copy button', () => {
text: 'copy me', text: 'copy me',
title: 'Copy this value', title: 'Copy this value',
}, },
attachToDocument: true,
}); });
}); });
......
...@@ -33,7 +33,6 @@ describe('system note component', () => { ...@@ -33,7 +33,6 @@ describe('system note component', () => {
vm = mount(IssueSystemNote, { vm = mount(IssueSystemNote, {
store, store,
propsData: props, propsData: props,
attachToDocument: true,
}); });
}); });
......
...@@ -26,7 +26,6 @@ describe('Pagination links component', () => { ...@@ -26,7 +26,6 @@ describe('Pagination links component', () => {
list: [{ id: 'foo' }, { id: 'bar' }], list: [{ id: 'foo' }, { id: 'bar' }],
props, props,
}, },
attachToDocument: true,
}); });
[glPaginatedList] = wrapper.vm.$children; [glPaginatedList] = wrapper.vm.$children;
......
...@@ -14,7 +14,6 @@ describe('Resizable Chart Container', () => { ...@@ -14,7 +14,6 @@ describe('Resizable Chart Container', () => {
beforeEach(() => { beforeEach(() => {
wrapper = mount(ResizableChartContainer, { wrapper = mount(ResizableChartContainer, {
attachToDocument: true,
scopedSlots: { scopedSlots: {
default: ` default: `
<div class="slot" slot-scope="{ width, height }"> <div class="slot" slot-scope="{ width, height }">
......
...@@ -12,7 +12,6 @@ import { ...@@ -12,7 +12,6 @@ import {
const createComponent = (config = mockConfig) => const createComponent = (config = mockConfig) =>
shallowMount(BaseComponent, { shallowMount(BaseComponent, {
propsData: config, propsData: config,
attachToDocument: true,
}); });
describe('BaseComponent', () => { describe('BaseComponent', () => {
......
...@@ -24,7 +24,6 @@ const createComponent = ( ...@@ -24,7 +24,6 @@ const createComponent = (
labelFilterBasePath, labelFilterBasePath,
enableScopedLabels: true, enableScopedLabels: true,
}, },
attachToDocument: true,
}); });
}; };
......
...@@ -7,7 +7,6 @@ describe('Time ago with tooltip component', () => { ...@@ -7,7 +7,6 @@ describe('Time ago with tooltip component', () => {
const buildVm = (propsData = {}) => { const buildVm = (propsData = {}) => {
vm = shallowMount(TimeAgoTooltip, { vm = shallowMount(TimeAgoTooltip, {
attachToDocument: true,
propsData, propsData,
}); });
}; };
......
...@@ -26,7 +26,6 @@ describe('User Avatar Link Component', () => { ...@@ -26,7 +26,6 @@ describe('User Avatar Link Component', () => {
...defaultProps, ...defaultProps,
...props, ...props,
}, },
attachToDocument: true,
}); });
}; };
......
...@@ -59,7 +59,6 @@ describe('User Popover Component', () => { ...@@ -59,7 +59,6 @@ describe('User Popover Component', () => {
status: null, status: null,
}, },
}, },
attachToDocument: true,
}, },
); );
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment