Skip to content

Commit 4a2cdeb

Browse files
authored
docs: user event english grammar fixes (#858)
1 parent 20fbf0a commit 4a2cdeb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/ecosystem-user-event.mdx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ test('types inside textarea', () => {
3030
## API
3131

3232
Note: All userEvent methods are synchronous with one exception: when `delay`
33-
option used with `userEvent.type` as described below. We also discourage using `userEvent`
34-
inside `before/after` blocks at all, for important reasons described in
33+
option used with `userEvent.type` as described below. We also discourage using
34+
`userEvent` inside `before/after` blocks at all, for important reasons described
35+
in
3536
["Avoid Nesting When You're Testing"](https://kentcdodds.com/blog/avoid-nesting-when-youre-testing).
3637

3738
### `click(element, eventInit, options)`
@@ -206,8 +207,8 @@ test('types into the input', () => {
206207
### `upload(element, file, [{ clickInit, changeInit }])`
207208
208209
Uploads file to an `<input>`. For uploading multiple files use `<input>` with
209-
`multiple` attribute and the second `upload` argument must be array then. Also
210-
it's possible to initialize click or change event with using third argument.
210+
the `multiple` attribute and the second `upload` argument as an array. It's also
211+
possible to initialize a click or change event using a third argument.
211212

212213
```jsx
213214
import React from 'react'

0 commit comments

Comments
 (0)