File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -380,15 +380,15 @@ export default { name: 'Foo' }
380
380
```
381
381
382
382
``` js
383
- test (' find ' , () => {
383
+ test (' findComponent ' , () => {
384
384
const wrapper = mount (Component)
385
385
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
392
392
})
393
393
```
394
394
You can’t perform that action at this time.
0 commit comments