Skip to content

Commit e0cbb16

Browse files
authored
Update find to findComponent in documentation example for mount options. (#1683)
* Update find -> find components in options doc It was older name of the method used for examples. * Option doc update find -> findComponent in example zn version
1 parent 5cd8d59 commit e0cbb16

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/api/options.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ const WrapperComp = {
206206
ComponentUnderTest
207207
}
208208
}
209-
const wrapper = mount(WrapperComp).find(ComponentUnderTest)
209+
const wrapper = mount(WrapperComp).findComponent(ComponentUnderTest)
210210
```
211211

212212
## stubs

docs/zh/api/options.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ const WrapperComp = {
204204
ComponentUnderTest
205205
}
206206
}
207-
const wrapper = mount(WrapperComp).find(ComponentUnderTest)
207+
const wrapper = mount(WrapperComp).findComponent(ComponentUnderTest)
208208
```
209209

210210
## stubs

0 commit comments

Comments
 (0)