Skip to content

Commit

Permalink
test(useConnectQuery): test for when QueryResult is passed, the initi…
Browse files Browse the repository at this point in the history
…al data is available immediately
  • Loading branch information
HassanBahati committed Dec 18, 2024
1 parent a626a21 commit f359e3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react/src/data-connect/useConnectQuery.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ describe("useConnectQuery", () => {

// Should not enter a loading state
expect(result.current.isLoading).toBe(false);

expect(result.current.isPending).toBe(false);

expect(result.current.isSuccess).toBe(true);

expect(result.current.data).toBeDefined();
Expand Down

0 comments on commit f359e3c

Please sign in to comment.