From 8176f7fac6bb44a6ceb13ae1cd15e05fd48620ca Mon Sep 17 00:00:00 2001 From: cexbrayat Date: Sun, 19 Apr 2020 13:01:23 +0200 Subject: [PATCH] fix: findComponent in docs --- docs/API.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/API.md b/docs/API.md index 38e0186f9..7368312cc 100644 --- a/docs/API.md +++ b/docs/API.md @@ -380,15 +380,15 @@ export default { name: 'Foo' } ``` ```js -test('find', () => { +test('findComponent', () => { const wrapper = mount(Component) - wrapper.find('.foo') //=> found; returns VueWrapper - wrapper.find('[data-test="foo"]') //=> found; returns VueWrapper - wrapper.find({ name: 'Foo' }) //=> found; returns VueWrapper - wrapper.find({ name: 'foo' }) //=> found; returns VueWrapper - wrapper.find({ ref: 'foo' }) //=> found; returns VueWrapper - wrapper.find(Foo) //=> found; returns VueWrapper + wrapper.findComponent('.foo') //=> found; returns VueWrapper + wrapper.findComponent('[data-test="foo"]') //=> found; returns VueWrapper + wrapper.findComponent({ name: 'Foo' }) //=> found; returns VueWrapper + wrapper.findComponent({ name: 'foo' }) //=> found; returns VueWrapper + wrapper.findComponent({ ref: 'foo' }) //=> found; returns VueWrapper + wrapper.findComponent(Foo) //=> found; returns VueWrapper }) ```