From 291c6f3b608e7bffb2ce8d595837cd24b88fe464 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 6 Jan 2026 00:55:41 +0100 Subject: [PATCH] test: cover WhatsApp DM senderE164 --- CHANGELOG.md | 1 + src/web/monitor-inbox.test.ts | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index af18252c0..65f5ff03d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,7 @@ - Docs: document systemd lingering and logged-in session requirements on macOS/Windows. - Auto-reply: unify tool/block/final delivery across providers and apply consistent heartbeat/prefix handling. Thanks @MSch for PR #225 (superseded commit 92c953d0749143eb2a3f31f3cd6ad0e8eabf48c3). - Heartbeat: make HEARTBEAT_OK ack padding configurable across heartbeat and cron delivery. (#238) — thanks @jalehman +- WhatsApp: set sender E.164 for direct chats so owner commands work in DMs. ### Maintenance - Deps: bump pi-* stack, Slack SDK, discord-api-types, file-type, zod, and Biome. diff --git a/src/web/monitor-inbox.test.ts b/src/web/monitor-inbox.test.ts index 483121a3e..3f285b6b0 100644 --- a/src/web/monitor-inbox.test.ts +++ b/src/web/monitor-inbox.test.ts @@ -701,7 +701,11 @@ describe("web monitor inbox", () => { // Should call onMessage for authorized senders expect(onMessage).toHaveBeenCalledWith( - expect.objectContaining({ body: "authorized message", from: "+999" }), + expect.objectContaining({ + body: "authorized message", + from: "+999", + senderE164: "+999", + }), ); // Reset mock for other tests