mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 13:10:43 +00:00
fix(tests): remove duplicate config mock key
This commit is contained in:
@@ -17,17 +17,10 @@ vi.mock("./plugin-registry.js", () => ({
|
||||
loadPluginManifestRegistryForPluginRegistry: () => ({ diagnostics: [], plugins: mocks.plugins }),
|
||||
}));
|
||||
|
||||
vi.mock("./config-state.js", async (importOriginal) => ({
|
||||
...(await importOriginal<typeof import("./config-state.js")>()),
|
||||
vi.mock("./config-state.js", () => ({
|
||||
hasExplicitPluginConfig: (plugins?: { entries?: Record<string, unknown> }) =>
|
||||
Boolean(plugins?.entries && Object.keys(plugins.entries).length > 0),
|
||||
normalizePluginsConfig: (plugins?: unknown) => plugins,
|
||||
resolveEffectiveEnableState: (params: {
|
||||
config?: { entries?: Record<string, { enabled?: boolean }> };
|
||||
id: string;
|
||||
}) => ({
|
||||
enabled: params.config?.entries?.[params.id]?.enabled !== false,
|
||||
}),
|
||||
resolveEffectivePluginActivationState: (params: {
|
||||
config?: { entries?: Record<string, { enabled?: boolean }> };
|
||||
id: string;
|
||||
|
||||
Reference in New Issue
Block a user