test: dedupe doctor repair mock reads · openclaw/openclaw@19599c2
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -306,11 +306,11 @@ describe("doctor repair sequencing", () => {
|
306 | 306 | |
307 | 307 | expect(events).toEqual(["bundled-shadow-cleanup", "openclaw-peer-links", "missing-installs"]); |
308 | 308 | expect(mocks.maybeRepairStaleManagedNpmBundledPlugins).toHaveBeenCalledOnce(); |
309 | | -const cleanupCall = mocks.maybeRepairStaleManagedNpmBundledPlugins.mock.calls.at(0)?.[0]; |
| 309 | +const cleanupCall = mocks.maybeRepairStaleManagedNpmBundledPlugins.mock.calls[0]?.[0]; |
310 | 310 | expect(cleanupCall?.config.plugins?.entries?.["google-meet"]).toEqual({ enabled: true }); |
311 | 311 | expect(cleanupCall?.prompter).toEqual({ shouldRepair: true }); |
312 | 312 | expect(mocks.maybeRepairManagedNpmOpenClawPeerLinks).toHaveBeenCalledOnce(); |
313 | | -const peerLinkCall = mocks.maybeRepairManagedNpmOpenClawPeerLinks.mock.calls.at(0)?.[0]; |
| 313 | +const peerLinkCall = mocks.maybeRepairManagedNpmOpenClawPeerLinks.mock.calls[0]?.[0]; |
314 | 314 | expect(peerLinkCall?.config.plugins?.entries?.["google-meet"]).toEqual({ enabled: true }); |
315 | 315 | expect(peerLinkCall?.prompter).toEqual({ shouldRepair: true }); |
316 | 316 | expect(peerLinkCall?.env).toBe(process.env); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。