test: cover WhatsApp DM senderE164

This commit is contained in:
Peter Steinberger
2026-01-06 00:55:41 +01:00
parent a6a45f4b84
commit 291c6f3b60
2 changed files with 6 additions and 1 deletions

View File

@@ -33,6 +33,7 @@
- Docs: document systemd lingering and logged-in session requirements on macOS/Windows. - 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). - 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 - 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 ### Maintenance
- Deps: bump pi-* stack, Slack SDK, discord-api-types, file-type, zod, and Biome. - Deps: bump pi-* stack, Slack SDK, discord-api-types, file-type, zod, and Biome.

View File

@@ -701,7 +701,11 @@ describe("web monitor inbox", () => {
// Should call onMessage for authorized senders // Should call onMessage for authorized senders
expect(onMessage).toHaveBeenCalledWith( expect(onMessage).toHaveBeenCalledWith(
expect.objectContaining({ body: "authorized message", from: "+999" }), expect.objectContaining({
body: "authorized message",
from: "+999",
senderE164: "+999",
}),
); );
// Reset mock for other tests // Reset mock for other tests