test: register discord plugin in allowlist test
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user