test: dedupe plugin install path mock read · openclaw/openclaw@d29225f
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -187,7 +187,7 @@ describe("installPluginFromPath", () => {
|
187 | 187 | |
188 | 188 | expect(result.ok).toBe(true); |
189 | 189 | expect(handler).toHaveBeenCalledTimes(1); |
190 | | -const [installContext, installMetadata] = handler.mock.calls.at(0) ?? []; |
| 190 | +const [installContext, installMetadata] = handler.mock.calls[0] ?? []; |
191 | 191 | expect(installContext).toEqual({ |
192 | 192 | targetName: "payload", |
193 | 193 | targetType: "plugin", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。