test: cover Slack/Discord dmPolicy aliases in monitor

This commit is contained in:
Peter Steinberger
2026-02-14 20:42:20 +01:00
parent 21f0e3fa0c
commit 9d0a1e32bb
2 changed files with 4 additions and 2 deletions

View File

@@ -127,7 +127,7 @@ describe("discord tool result dispatch", () => {
}, },
session: { store: "/tmp/openclaw-sessions.json" }, session: { store: "/tmp/openclaw-sessions.json" },
messages: { responsePrefix: "PFX" }, messages: { responsePrefix: "PFX" },
channels: { discord: { dm: { enabled: true, policy: "open" } } }, channels: { discord: { dmPolicy: "open", allowFrom: ["*"], dm: { enabled: true } } },
} as ReturnType<typeof import("../config/config.js").loadConfig>; } as ReturnType<typeof import("../config/config.js").loadConfig>;
const runtimeError = vi.fn(); const runtimeError = vi.fn();

View File

@@ -31,7 +31,9 @@ describe("monitorSlackProvider tool results", () => {
}, },
channels: { channels: {
slack: { slack: {
dm: { enabled: true, policy: "open", allowFrom: ["*"] }, dmPolicy: "open",
allowFrom: ["*"],
dm: { enabled: true },
replyToMode: "off", replyToMode: "off",
}, },
}, },