Skip to content

Commit

Permalink
Use toEqualApolloQueryResult for some assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jan 14, 2025
1 parent f6ddd65 commit 5a9a280
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/react/hooks/__tests__/useQuery.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1844,7 +1844,7 @@ describe("useQuery Hook", () => {
},
});

expect(finalResult).toEqual({
expect(finalResult).toEqualApolloQueryResult({
data: {
vars: {
sourceOfVar: "reobserve",
Expand Down Expand Up @@ -1899,7 +1899,7 @@ describe("useQuery Hook", () => {
},
});

expect(finalResultNoVarMerge).toEqual({
expect(finalResultNoVarMerge).toEqualApolloQueryResult({
// Since we didn't merge in result.current.observable.variables, we
// don't see these variables anymore:
// isGlobal: false,
Expand Down Expand Up @@ -2263,7 +2263,7 @@ describe("useQuery Hook", () => {

await expect(
getCurrentSnapshot().observable.reobserve()
).resolves.toEqual({
).resolves.toEqualApolloQueryResult({
data: { linkCount: 2 },
loading: false,
networkStatus: NetworkStatus.ready,
Expand Down

0 comments on commit 5a9a280

Please sign in to comment.