mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-22 12:44:02 +00:00
test: count plugin install enable calls
This commit is contained in:
@@ -724,7 +724,7 @@ describe("plugins cli install", () => {
|
||||
|
||||
await runPluginsCommand(["plugins", "install", pluginId]);
|
||||
|
||||
expect(enablePluginInConfig).toHaveBeenCalled();
|
||||
expect(enablePluginInConfig).toHaveBeenCalledTimes(1);
|
||||
expect(writeConfigFile).toHaveBeenCalledWith(enabledCfg);
|
||||
expect(runtimeLogsContain("requires configuration first")).toBe(false);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user