diff --git a/docs/api/options.md b/docs/api/options.md index dddf6366e..fcd76acd7 100644 --- a/docs/api/options.md +++ b/docs/api/options.md @@ -206,7 +206,7 @@ const WrapperComp = { ComponentUnderTest } } -const wrapper = mount(WrapperComp).find(ComponentUnderTest) +const wrapper = mount(WrapperComp).findComponent(ComponentUnderTest) ``` ## stubs diff --git a/docs/zh/api/options.md b/docs/zh/api/options.md index 65df63f6a..3613caa42 100644 --- a/docs/zh/api/options.md +++ b/docs/zh/api/options.md @@ -204,7 +204,7 @@ const WrapperComp = { ComponentUnderTest } } -const wrapper = mount(WrapperComp).find(ComponentUnderTest) +const wrapper = mount(WrapperComp).findComponent(ComponentUnderTest) ``` ## stubs