test: cover WhatsApp DM senderE164
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user