test: remove duplicate whatsapp group heartbeat target case

This commit is contained in:
Peter Steinberger
2026-02-16 09:41:50 +00:00
parent d3ddf893c2
commit 9b351fcbd8

View File

@@ -287,24 +287,6 @@ describe("resolveHeartbeatDeliveryTarget", () => {
});
});
it("keeps WhatsApp group targets even with allowFrom set", () => {
const cfg: OpenClawConfig = {
channels: { whatsapp: { allowFrom: ["+1555"] } },
};
const entry = {
...baseEntry,
lastChannel: "whatsapp" as const,
lastTo: "120363401234567890@g.us",
};
expect(resolveHeartbeatDeliveryTarget({ cfg, entry })).toEqual({
channel: "whatsapp",
to: "120363401234567890@g.us",
accountId: undefined,
lastChannel: "whatsapp",
lastAccountId: undefined,
});
});
it("normalizes prefixed WhatsApp group targets for heartbeat delivery", () => {
const cfg: OpenClawConfig = {
channels: { whatsapp: { allowFrom: ["+1555"] } },