Skip to content

Commit c37b5eb

Browse files
committed
Fix attachToDocument deprecation warnings
1 parent a7c67c7 commit c37b5eb

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

tests/unit/components/DocumentationTopic/DocumentationNav/LanguageToggle.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ describe('LanguageToggle', () => {
5757
propsData: props,
5858
provide,
5959
stubs,
60-
attachToDocument: true,
60+
attachTo: document.body,
6161
})
6262
);
6363

tests/unit/components/DropdownCustom.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const createWrapper = ({ propsData, ...rest } = {}) => mount(DropdownCustom, {
2727
...defaultProps,
2828
...propsData,
2929
},
30-
attachToDocument: true,
30+
attachTo: document.body,
3131
scopedSlots: {
3232
default(props) {
3333
slotProps = props;

tests/unit/components/Filter/Tag.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('Tag', () => {
2525
};
2626

2727
beforeEach(() => {
28-
wrapper = shallowMount(Tag, { propsData, attachToDocument: true });
28+
wrapper = shallowMount(Tag, { propsData, attachTo: document.body });
2929
button = wrapper.findComponent('button');
3030
jest.clearAllMocks();
3131
});

tests/unit/components/GenericModal.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const createWrapper = ({ propsData, ...other } = {}) => {
4343
slots: {
4444
default: '<div class="default">Default</div>',
4545
},
46-
attachToDocument: true,
46+
attachTo: document.body,
4747
...other,
4848
};
4949
return shallowMount(GenericModal, config);

tests/unit/components/NavBase.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const createWrapper = async ({ propsData, ...rest } = {}) => {
3434
propsData: {
3535
...propsData,
3636
},
37-
attachToDocument: true,
37+
attachTo: document.body,
3838
...rest,
3939
});
4040
await wrapper.vm.$nextTick();

tests/unit/components/Navigator/NavigatorCard.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ const createWrapper = ({ propsData, ...others } = {}) => shallowMount(NavigatorC
190190
},
191191
sync: false,
192192
mocks: { $route: { path: defaultProps.technologyPath } },
193-
attachToDocument: true,
193+
attachTo: document.body,
194194
...others,
195195
});
196196

tests/unit/components/Navigator/NavigatorCardItem.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const createWrapper = ({ propsData, ...others } = {}) => shallowMount(NavigatorC
5353
RouterLink: RouterLinkStub,
5454
BaseNavigatorCardItem,
5555
},
56-
attachToDocument: true,
56+
attachTo: document.body,
5757
...others,
5858
});
5959

tests/unit/components/Tutorial/Assessments/Quiz.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ describe('Quiz', () => {
175175
wrapper = shallowMount(Quiz, {
176176
propsData,
177177
stubs: { i18n: i18nStub },
178-
attachToDocument: true,
178+
attachTo: document.body,
179179
});
180180
choices = wrapper.findAll('.choice');
181181
submit = wrapper.findComponent('.check');

tests/unit/components/Tutorial/NavigationBar/PrimaryDropdown.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ describe('Primary Dropdown', () => {
132132
state: { references },
133133
},
134134
},
135-
attachToDocument: true,
135+
attachTo: document.body,
136136
});
137137

138138
btn = wrapper.findComponent('.form-dropdown-toggle');

tests/unit/components/Tutorial/NavigationBar/SecondaryDropdown.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ describe('SecondaryDropdown', () => {
8383
},
8484
},
8585
stubs: { 'router-link': RouterLinkStub },
86-
attachToDocument: true,
86+
attachTo: document.body,
8787
});
8888
btn = wrapper.findComponent('.form-dropdown-toggle');
8989
optionElements = wrapper.findAll(`.${OptionClass}`);

0 commit comments

Comments
 (0)