test: dedupe plugin install mock read · openclaw/openclaw@0c5bbda
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -679,7 +679,9 @@ describe("plugins cli install", () => {
|
679 | 679 | |
680 | 680 | await runPluginsCommand(["plugins", "install", pluginId]); |
681 | 681 | |
682 | | -const writtenConfig = writeConfigFile.mock.calls.at(-1)?.[0] as OpenClawConfig; |
| 682 | +const writtenConfig = writeConfigFile.mock.calls[ |
| 683 | +writeConfigFile.mock.calls.length - 1 |
| 684 | +]?.[0] as OpenClawConfig; |
683 | 685 | expect(writtenConfig.plugins?.entries?.[pluginId]).toBeUndefined(); |
684 | 686 | expect(writtenConfig.plugins?.load?.paths).toEqual(["/existing/plugin"]); |
685 | 687 | const record = persistedInstallRecord(pluginId); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。