Commit 88346115 authored by Paul Slaughter's avatar Paul Slaughter

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

Remove useless attachToDocument usage in ee/spec/frontend/vue_shared

Closes #196753

See merge request gitlab-org/gitlab!23050
parents 212964ff f3c87d7a
...@@ -21,7 +21,6 @@ describe('Card security reports app', () => { ...@@ -21,7 +21,6 @@ describe('Card security reports app', () => {
const createComponent = props => { const createComponent = props => {
wrapper = mount(CardSecurityDashboardApp, { wrapper = mount(CardSecurityDashboardApp, {
store: createStore(), store: createStore(),
attachToDocument: true,
stubs: ['security-dashboard-table'], stubs: ['security-dashboard-table'],
propsData: { propsData: {
hasPipelineData: true, hasPipelineData: true,
......
...@@ -6,10 +6,7 @@ describe('DismissalButton', () => { ...@@ -6,10 +6,7 @@ describe('DismissalButton', () => {
let wrapper; let wrapper;
const mountComponent = options => { const mountComponent = options => {
wrapper = mount(component, { wrapper = mount(component, options);
attachToDocument: true,
...options,
});
}; };
describe('With a non-dismissed vulnerability', () => { describe('With a non-dismissed vulnerability', () => {
......
...@@ -22,7 +22,7 @@ describe('dismissal note', () => { ...@@ -22,7 +22,7 @@ describe('dismissal note', () => {
let wrapper; let wrapper;
const mountComponent = (options, mountFn = shallowMount) => { const mountComponent = (options, mountFn = shallowMount) => {
wrapper = mountFn(component, { attachToDocument: true, ...options }); wrapper = mountFn(component, options);
}; };
describe('with no attached project or pipeline', () => { describe('with no attached project or pipeline', () => {
......
...@@ -5,7 +5,7 @@ describe('Event Item', () => { ...@@ -5,7 +5,7 @@ describe('Event Item', () => {
let wrapper; let wrapper;
const mountComponent = (options, mountFn = shallowMount) => { const mountComponent = (options, mountFn = shallowMount) => {
wrapper = mountFn(Component, { attachToDocument: true, ...options }); wrapper = mountFn(Component, options);
}; };
describe('initial state', () => { describe('initial state', () => {
......
...@@ -9,10 +9,7 @@ describe('Security Reports modal footer', () => { ...@@ -9,10 +9,7 @@ describe('Security Reports modal footer', () => {
let wrapper; let wrapper;
const mountComponent = options => { const mountComponent = options => {
wrapper = mount(component, { wrapper = mount(component, options);
attachToDocument: true,
...options,
});
}; };
describe('can only create issue', () => { describe('can only create issue', () => {
......
...@@ -8,7 +8,7 @@ describe('Security Reports modal', () => { ...@@ -8,7 +8,7 @@ describe('Security Reports modal', () => {
let wrapper; let wrapper;
const mountComponent = (options, mountFn = shallowMount) => { const mountComponent = (options, mountFn = shallowMount) => {
wrapper = mountFn(component, { attachToDocument: true, ...options }); wrapper = mountFn(component, options);
}; };
describe('with permissions', () => { describe('with permissions', () => {
......
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