Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Cellule committed Jan 28, 2025
1 parent 3ed8547 commit 0c11195
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/__tests__/dataMasking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1892,7 +1892,8 @@ describe("client.watchQuery", () => {

const updateQuery: Parameters<typeof observable.updateQuery>[0] = jest.fn(
(previousResult) => {
expect(previousResult.complete).toBe(true);
expect(previousResult.complete).toBeTruthy();
expect(typeof previousResult.complete).toBe("symbol");
// Type guard
if (!previousResult.complete) {
return undefined;
Expand Down
3 changes: 2 additions & 1 deletion src/__tests__/subscribeToMore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ describe("subscribeToMore", () => {
}
`,
updateQuery: (prev, { subscriptionData }) => {
expect(prev.complete).toBe(true);
expect(prev.complete).toBeTruthy();
expect(typeof prev.complete).toBe("symbol");
// Type guard
if (!prev.complete) {
return undefined;
Expand Down

0 comments on commit 0c11195

Please sign in to comment.