Skip to content

Commit 64c1678

Browse files
authored
Documentation correction for new async utility waitFor (#436)
Updating the example description as the previous example given for `waitFor` doesn't match the old description.
1 parent 34c1489 commit 64c1678

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/dom-testing-library/api-async.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ expectations to pass. Here's a simple example:
2929
```javascript
3030
// ...
3131
// Wait until the callback does not throw an error. In this case, that means
32-
// it'll wait until we can get a form control with a label that matches "username".
32+
// it'll wait until the mock function has been called once.
3333
await waitFor(() => expect(mockAPI).toHaveBeenCalledTimes(1))
3434
// ...
3535
```

0 commit comments

Comments
 (0)