There was an error while loading. Please reload this page.
1 parent 34c1489 commit 64c1678Copy full SHA for 64c1678
docs/dom-testing-library/api-async.md
@@ -29,7 +29,7 @@ expectations to pass. Here's a simple example:
29
```javascript
30
// ...
31
// 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".
+// it'll wait until the mock function has been called once.
33
await waitFor(() => expect(mockAPI).toHaveBeenCalledTimes(1))
34
35
```
0 commit comments