test: register discord plugin in allowlist test

main
Peter Steinberger 2026-02-05 00:37:56 -08:00
parent d6cde28c8e
commit bdb90ea4ee
1 changed files with 12 additions and 0 deletions

View File

@ -178,6 +178,18 @@ describe("resolveCommandAuthorization", () => {
}); });
it("uses owner allowlist override from context when configured", () => { it("uses owner allowlist override from context when configured", () => {
setActivePluginRegistry(
createTestRegistry([
{
pluginId: "discord",
plugin: createOutboundTestPlugin({
id: "discord",
outbound: { deliveryMode: "direct" },
}),
source: "test",
},
]),
);
const cfg = { const cfg = {
channels: { discord: {} }, channels: { discord: {} },
} as OpenClawConfig; } as OpenClawConfig;