Skip to content

Commit

Permalink
Fix incorrect assertions on several tests (#12142)
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller authored Nov 18, 2024
1 parent b0c35bf commit 48d550c
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions src/core/__tests__/masking.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3705,7 +3705,8 @@ describe("maskFragment", () => {
);

expect(data).toEqual({
greeting: { message: "Hello world", __typename: "Greeting" },
message: "Hello world",
__typename: "Greeting",
});
}

Expand Down Expand Up @@ -3758,11 +3759,9 @@ describe("maskFragment", () => {
expect(console.warn).toHaveBeenCalledTimes(1);

expect(data).toEqual({
greeting: {
__typename: "Greeting",
message: "Hello world",
recipient: { __typename: "__Person" },
},
__typename: "Greeting",
message: "Hello world",
recipient: { __typename: "__Person" },
});
}
}
Expand Down Expand Up @@ -3904,7 +3903,8 @@ describe("maskFragment", () => {
);

expect(data).toEqual({
greeting: { message: "Hello world", __typename: "Greeting" },
message: "Hello world",
__typename: "Greeting",
});
}

Expand Down Expand Up @@ -3933,12 +3933,10 @@ describe("maskFragment", () => {
expect(console.warn).toHaveBeenCalledTimes(3);

expect(data).toEqual({
greeting: {
__typename: "Greeting",
message: "Hello world",
sentAt: "2024-01-01",
recipient: { __typename: "__Person", name: "Alice" },
},
__typename: "Greeting",
message: "Hello world",
sentAt: "2024-01-01",
recipient: { __typename: "__Person", name: "Alice" },
});
}
}
Expand Down

0 comments on commit 48d550c

Please sign in to comment.