From 5299d2713d6bffabfcb863fc43bf044ca69162cd Mon Sep 17 00:00:00 2001 From: Dale <1175204449@qq.com> Date: Tue, 4 Jan 2022 16:56:55 +0800 Subject: [PATCH] docs: fix a mistake in the demo 'Attach to DOM' --- docs/zh/api/mount.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/zh/api/mount.md b/docs/zh/api/mount.md index 20a06177d..ae9b8e08b 100644 --- a/docs/zh/api/mount.md +++ b/docs/zh/api/mount.md @@ -58,7 +58,7 @@ describe('Foo', () => { const div = document.createElement('div') document.body.appendChild(div) const wrapper = mount(Foo, { - attachTo: true + attachTo: div }) expect(wrapper.contains('div')).toBe(true) wrapper.destroy()