Commit f3c87d7a authored by Illya Klymov's avatar Illya Klymov

Remove useless attachToDocument property

attachToDocument property is not needed
parent 4ac2a641
......@@ -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