Skip to content

Commit f359e3c

Browse files
committed
test(useConnectQuery): test for when QueryResult is passed, the initial data is available immediately
1 parent a626a21 commit f359e3c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react/src/data-connect/useConnectQuery.test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ describe("useConnectQuery", () => {
159159

160160
// Should not enter a loading state
161161
expect(result.current.isLoading).toBe(false);
162-
162+
expect(result.current.isPending).toBe(false);
163+
163164
expect(result.current.isSuccess).toBe(true);
164165

165166
expect(result.current.data).toBeDefined();

0 commit comments

Comments
 (0)