mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-06 14:51:08 +00:00
fix(ci): align loader and channel test expectations
This commit is contained in:
@@ -731,7 +731,7 @@ describe("loadOpenClawPlugins", () => {
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "keeps bundled channel plugins behind restrictive allowlists even when channels.<id>.enabled=true",
|
||||
name: "lets explicit bundled channel enablement bypass restrictive allowlists",
|
||||
config: {
|
||||
channels: {
|
||||
telegram: {
|
||||
@@ -744,8 +744,8 @@ describe("loadOpenClawPlugins", () => {
|
||||
} satisfies PluginLoadConfig,
|
||||
assert: (registry: ReturnType<typeof loadOpenClawPlugins>) => {
|
||||
const telegram = registry.plugins.find((entry) => entry.id === "telegram");
|
||||
expect(telegram?.status).toBe("disabled");
|
||||
expect(telegram?.error).toBe("not in allowlist");
|
||||
expect(telegram?.status).toBe("loaded");
|
||||
expect(telegram?.error).toBeUndefined();
|
||||
expect(telegram?.explicitlyEnabled).toBe(true);
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user