Skip to content

Commit

Permalink
docs: isSuccess is a boolean not a function (#1282)
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan gabriel ramirez cruz committed Nov 12, 2020
1 parent ff1bfb2 commit 3de60e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/pages/docs/guides/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const expectation = nock('http://example.com')
const { result, waitFor } = renderHook(() => useFetchData(), { wrapper });
await waitFor(() => {
return result.current.isSuccess();
return result.current.isSuccess;
});
expect(result.current).toEqual({answer: 42});
Expand Down

1 comment on commit 3de60e6

@vercel
Copy link

@vercel vercel bot commented on 3de60e6 Nov 12, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.