Skip to content

Commit

Permalink
Fixed expectation
Browse files Browse the repository at this point in the history
  • Loading branch information
Cellule committed Jan 27, 2025
1 parent 9613b1e commit 34d92d3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/__tests__/subscribeToMore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,10 @@ describe("subscribeToMore", () => {
}
`,
updateQuery: (prev, { subscriptionData }) => {
if (!prev) {
return prev;
}
expect(prev.entry).not.toContainEqual(nextMutation);
expect(prev).toBeTruthy();
expect(prev!.entry).not.toContainEqual(nextMutation);
return {
entry: [...prev.entry, { value: subscriptionData.data.name }],
entry: [...prev!.entry, { value: subscriptionData.data.name }],
};
},
});
Expand Down

0 comments on commit 34d92d3

Please sign in to comment.