test: update whatsapp reply quote assertions

This commit is contained in:
Peter Steinberger
2025-12-23 02:27:46 +01:00
parent 6550e7d562
commit 950432eac0

View File

@@ -110,7 +110,11 @@ describe("web monitor inbox", () => {
expect(sock.sendMessage).toHaveBeenCalledWith(
"999@s.whatsapp.net",
{ text: "pong" },
{ quoted: expect.objectContaining({ key: { id: "abc" } }) },
{
quoted: expect.objectContaining({
key: expect.objectContaining({ id: "abc" }),
}),
},
);
await listener.close();
@@ -194,7 +198,11 @@ describe("web monitor inbox", () => {
expect(sock.sendMessage).toHaveBeenCalledWith(
"999@s.whatsapp.net",
{ text: "pong" },
{ quoted: expect.objectContaining({ key: { id: "abc" } }) },
{
quoted: expect.objectContaining({
key: expect.objectContaining({ id: "abc" }),
}),
},
);
await listener.close();