Skip to content

Commit

Permalink
test(26237): fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vanch3d committed Sep 23, 2024
1 parent 11868f6 commit 00135a9
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ describe('useGetClientTopicSamples', () => {
const { result } = renderHook(() => useGetClientTopicSamples(), { wrapper })
await waitFor(() => {
expect(result.current.isLoading).toBeFalsy()
})

await waitFor(() => {
result.current.refetch()
expect(result.current.isLoading).toBeFalsy()
expect(result.current.isSuccess).toBeTruthy()
})
expect(result.current.data).toStrictEqual<ClientTopicList>({
Expand Down

0 comments on commit 00135a9

Please sign in to comment.