mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 09:51:22 +00:00
test: remove duplicate whatsapp group heartbeat target case
This commit is contained in:
@@ -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", () => {
|
it("normalizes prefixed WhatsApp group targets for heartbeat delivery", () => {
|
||||||
const cfg: OpenClawConfig = {
|
const cfg: OpenClawConfig = {
|
||||||
channels: { whatsapp: { allowFrom: ["+1555"] } },
|
channels: { whatsapp: { allowFrom: ["+1555"] } },
|
||||||
|
|||||||
Reference in New Issue
Block a user