Skip to content

Commit 9bc919c

Browse files
authored
Merge pull request #79 from cexbrayat/fix/docs
fix: findComponent in docs
2 parents d0fd353 + 8176f7f commit 9bc919c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/API.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -380,15 +380,15 @@ export default { name: 'Foo' }
380380
```
381381

382382
```js
383-
test('find', () => {
383+
test('findComponent', () => {
384384
const wrapper = mount(Component)
385385

386-
wrapper.find('.foo') //=> found; returns VueWrapper
387-
wrapper.find('[data-test="foo"]') //=> found; returns VueWrapper
388-
wrapper.find({ name: 'Foo' }) //=> found; returns VueWrapper
389-
wrapper.find({ name: 'foo' }) //=> found; returns VueWrapper
390-
wrapper.find({ ref: 'foo' }) //=> found; returns VueWrapper
391-
wrapper.find(Foo) //=> found; returns VueWrapper
386+
wrapper.findComponent('.foo') //=> found; returns VueWrapper
387+
wrapper.findComponent('[data-test="foo"]') //=> found; returns VueWrapper
388+
wrapper.findComponent({ name: 'Foo' }) //=> found; returns VueWrapper
389+
wrapper.findComponent({ name: 'foo' }) //=> found; returns VueWrapper
390+
wrapper.findComponent({ ref: 'foo' }) //=> found; returns VueWrapper
391+
wrapper.findComponent(Foo) //=> found; returns VueWrapper
392392
})
393393
```
394394

0 commit comments

Comments
 (0)