8000 Fix typos and add clarity · vuejs/vue-test-utils@b859eb8 · GitHub
[go: up one dir, main page]

Skip to content

Commit b859eb8

Browse files
Fix typos and add clarity
1 parent caf55eb commit b859eb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api/wrapper/findComponent.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ expect(barRef.exists()).toBe(true)
2626
```
2727

2828
::: warning Usage with CSS selectors
29-
Using `findAllComponents` with CSS selector might have confusing behavior
29+
Using `findComponent` with a CSS selector might have confusing behavior
3030

3131< 602E code class="diff-text syntax-highlighted-line">
Consider this example:
3232

@@ -50,5 +50,5 @@ const childByCss = wrapper.findComponent('.child')
5050
expect(childByCss.vm.$options.name).toBe('Root') // => still Root
5151
```
5252

53-
The reason for such behavior is that `RootComponent` and `ChildComponent` are sharing same DOM node and only first matching component is included for each unique DOM node
53+
The reason for such behavior is that `RootComponent` and `ChildComponent` are sharing the same DOM node and only the first matching component is returned for each unique DOM node
5454
:::

0 commit comments

Comments
 (0)
0