Skip to content

Commit 3de60e6

Browse files
author
Juan gabriel ramirez cruz
authored
docs: isSuccess is a boolean not a function (#1282)
1 parent ff1bfb2 commit 3de60e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/pages/docs/guides/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const expectation = nock('http://example.com')
7979
const { result, waitFor } = renderHook(() => useFetchData(), { wrapper });
8080
8181
await waitFor(() => {
82-
return result.current.isSuccess();
82+
return result.current.isSuccess;
8383
});
8484
8585
expect(result.current).toEqual({answer: 42});

0 commit comments

Comments
 (0)