mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 06:12:45 +00:00
test: remove redundant explicit telegram heartbeat target case
This commit is contained in:
@@ -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", () => {
|
it("uses explicit heartbeat accountId when provided", () => {
|
||||||
const cfg: OpenClawConfig = {
|
const cfg: OpenClawConfig = {
|
||||||
agents: {
|
agents: {
|
||||||
|
|||||||
Reference in New Issue
Block a user