Skip to content

Commit 8c81159

Browse files
committed
Fix inaccurate description
1 parent 61515e2 commit 8c81159

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/core/__tests__/ApolloClient/general.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3118,7 +3118,7 @@ describe("ApolloClient", () => {
31183118
await expect(stream).not.toEmitAnything();
31193119
});
31203120

3121-
it("keeps the clobbered cache value when a polled result matches the last written result", async () => {
3121+
it("writes the latest polled result over a clobbered cache value when polled result equals last polled result", async () => {
31223122
const query = gql`
31233123
query {
31243124
hero {
@@ -3161,7 +3161,6 @@ describe("ApolloClient", () => {
31613161
partial: false,
31623162
});
31633163

3164-
// Another writer clobbers the field this query wrote.
31653164
client.writeQuery({
31663165
query,
31673166
data: { hero: { __typename: "Hero", id: "1", name: "Clobbered" } },

0 commit comments

Comments
 (0)