test: count plugin install enable calls · openclaw/openclaw@4ebca4c
openclaw
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -724,7 +724,7 @@ describe("plugins cli install", () => {
|
724 | 724 | |
725 | 725 | await runPluginsCommand(["plugins", "install", pluginId]); |
726 | 726 | |
727 | | -expect(enablePluginInConfig).toHaveBeenCalled(); |
| 727 | +expect(enablePluginInConfig).toHaveBeenCalledTimes(1); |
728 | 728 | expect(writeConfigFile).toHaveBeenCalledWith(enabledCfg); |
729 | 729 | expect(runtimeLogsContain("requires configuration first")).toBe(false); |
730 | 730 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。