test: register discord plugin in allowlist test

This commit is contained in:
Peter Steinberger
2026-02-05 00:37:56 -08:00
parent d6cde28c8e
commit bdb90ea4ee

View File

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