mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:40:44 +00:00
test(plugins): mock install slot registry
This commit is contained in:
@@ -16,6 +16,7 @@ import {
|
||||
installPluginFromNpmSpec,
|
||||
installPluginFromPath,
|
||||
loadConfig,
|
||||
loadPluginManifestRegistry,
|
||||
readConfigFileSnapshot,
|
||||
parseClawHubPluginSpec,
|
||||
recordHookInstall,
|
||||
@@ -385,6 +386,10 @@ describe("plugins cli install", () => {
|
||||
plugins: [{ id: "alpha", kind: "provider" }],
|
||||
diagnostics: [],
|
||||
});
|
||||
loadPluginManifestRegistry.mockReturnValue({
|
||||
plugins: [{ id: "alpha", kind: "memory" }],
|
||||
diagnostics: [],
|
||||
});
|
||||
applyExclusiveSlotSelection.mockReturnValue({
|
||||
config: enabledCfg,
|
||||
warnings: ["slot adjusted"],
|
||||
|
||||
Reference in New Issue
Block a user