Skip to content

Commit 9648c3f

Browse files
docs: Fix typos and add clarity (#1959)
1 parent 555d377 commit 9648c3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api/wrapper/findComponent.md

+2-2
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
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)