mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:40:44 +00:00
test: remove duplicate plugin enable mock
This commit is contained in:
@@ -21,12 +21,6 @@ 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