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