Commit 7012cbf0 authored by Clement Ho's avatar Clement Ho

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

Remove useless attachToDocument usage in spec/frontend/environments

Closes #196756

See merge request gitlab-org/gitlab!23048
parents 0734d975 8ea63aaa
...@@ -9,7 +9,6 @@ describe('Monitoring Component', () => { ...@@ -9,7 +9,6 @@ describe('Monitoring Component', () => {
const createWrapper = () => { const createWrapper = () => {
wrapper = shallowMount(MonitoringComponent, { wrapper = shallowMount(MonitoringComponent, {
attachToDocument: true,
propsData: { propsData: {
monitoringUrl, monitoringUrl,
}, },
......
...@@ -13,7 +13,6 @@ describe('Rollback Component', () => { ...@@ -13,7 +13,6 @@ describe('Rollback Component', () => {
isLastDeployment: true, isLastDeployment: true,
environment: {}, environment: {},
}, },
attachToDocument: true,
}); });
expect(wrapper.element).toHaveSpriteIcon('repeat'); expect(wrapper.element).toHaveSpriteIcon('repeat');
...@@ -26,7 +25,6 @@ describe('Rollback Component', () => { ...@@ -26,7 +25,6 @@ describe('Rollback Component', () => {
isLastDeployment: false, isLastDeployment: false,
environment: {}, environment: {},
}, },
attachToDocument: true,
}); });
expect(wrapper.element).toHaveSpriteIcon('redo'); expect(wrapper.element).toHaveSpriteIcon('redo');
......
...@@ -11,7 +11,6 @@ describe('Stop Component', () => { ...@@ -11,7 +11,6 @@ describe('Stop Component', () => {
const createWrapper = () => { const createWrapper = () => {
wrapper = shallowMount(StopComponent, { wrapper = shallowMount(StopComponent, {
attachToDocument: true,
propsData: { propsData: {
environment: {}, environment: {},
}, },
......
...@@ -7,7 +7,6 @@ describe('Stop Component', () => { ...@@ -7,7 +7,6 @@ describe('Stop Component', () => {
const mountWithProps = props => { const mountWithProps = props => {
wrapper = shallowMount(TerminalComponent, { wrapper = shallowMount(TerminalComponent, {
attachToDocument: true,
propsData: props, propsData: props,
}); });
}; };
......
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