Skip to content

Commit 01d8e50

Browse files
committed
Fixed doc links for waitFor
1 parent 53e4b41 commit 01d8e50

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/api-reference.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ rejected. By default, errors are not suppressed for this utility.
224224

225225
### `wait`
226226

227-
_(DEPRECATED, use [`waitFor`](/reference/api#waitFor) instead)_
227+
_(DEPRECATED, use [`waitFor`](/reference/api#waitfor) instead)_
228228

229229
```js
230230
function waitFor(callback: function(): boolean|void, options?: {

src/asyncUtils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function asyncUtils(addResolver) {
9393
if (!hasWarnedDeprecatedWait) {
9494
hasWarnedDeprecatedWait = true
9595
console.warn(
96-
'`wait` has been deprecated. Use `waitFor` instead: https://react-hooks-testing-library.com/reference/api#waitFor.'
96+
'`wait` has been deprecated. Use `waitFor` instead: https://react-hooks-testing-library.com/reference/api#waitfor.'
9797
)
9898
}
9999
try {

0 commit comments

Comments
 (0)