Skip to content

Commit 343cbcc

Browse files
authored
docs: fix a mistake in the demo 'Attach to DOM' (#1947)
1 parent b1ce2fe commit 343cbcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/zh/api/mount.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ describe('Foo', () => {
5858
const div = document.createElement('div')
5959
document.body.appendChild(div)
6060
const wrapper = mount(Foo, {
61-
attachTo: true
61+
attachTo: div
6262
})
6363
expect(wrapper.contains('div')).toBe(true)
6464
wrapper.destroy()

0 commit comments

Comments
 (0)