From 8ec1c3c1c437b40e958bbbbde045a29e8bfb14b6 Mon Sep 17 00:00:00 2001 From: Shakker Date: Mon, 11 May 2026 04:21:32 +0100 Subject: [PATCH] test: tighten whatsapp group gating assertions --- .../monitor/group-gating.audio-preflight.test.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/extensions/whatsapp/src/auto-reply/monitor/group-gating.audio-preflight.test.ts b/extensions/whatsapp/src/auto-reply/monitor/group-gating.audio-preflight.test.ts index 381bba52bf1..3bcf5a1845e 100644 --- a/extensions/whatsapp/src/auto-reply/monitor/group-gating.audio-preflight.test.ts +++ b/extensions/whatsapp/src/auto-reply/monitor/group-gating.audio-preflight.test.ts @@ -95,9 +95,13 @@ describe("applyGroupGating audio preflight mention text", () => { expect(result).toEqual({ shouldProcess: false }); expect(groupHistories.get("whatsapp:group:1203630")).toEqual([ - expect.objectContaining({ + { + sender: "Alice (+15550000002)", body: "please summarize the thread", - }), + timestamp: 1700000000, + id: "msg-1", + senderJid: undefined, + }, ]); }); });