test: remove redundant explicit telegram heartbeat target case

This commit is contained in:
Peter Steinberger
2026-02-16 09:43:01 +00:00
parent 9b351fcbd8
commit 7a6928712b

View File

@@ -305,19 +305,6 @@ describe("resolveHeartbeatDeliveryTarget", () => {
});
});
it("keeps explicit telegram targets", () => {
const cfg: OpenClawConfig = {
agents: { defaults: { heartbeat: { target: "telegram", to: "123" } } },
};
expect(resolveHeartbeatDeliveryTarget({ cfg, entry: baseEntry })).toEqual({
channel: "telegram",
to: "123",
accountId: undefined,
lastChannel: undefined,
lastAccountId: undefined,
});
});
it("uses explicit heartbeat accountId when provided", () => {
const cfg: OpenClawConfig = {
agents: {