test: dedupe pi project settings mock read · openclaw/openclaw@30442d9
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -300,7 +300,7 @@ describe("loadEnabledBundlePiSettingsSnapshot", () => {
|
300 | 300 | expect(snapshot.hideThinkingBlock).toBe(true); |
301 | 301 | expect(pluginMetadataSnapshotMocks.getCurrentPluginMetadataSnapshot).toHaveBeenCalledOnce(); |
302 | 302 | const [snapshotLookup] = |
303 | | -pluginMetadataSnapshotMocks.getCurrentPluginMetadataSnapshot.mock.calls.at(0) ?? []; |
| 303 | +pluginMetadataSnapshotMocks.getCurrentPluginMetadataSnapshot.mock.calls[0] ?? []; |
304 | 304 | expect(snapshotLookup?.config?.plugins?.load).toEqual({ |
305 | 305 | paths: ["/tmp/changed-plugin-root"], |
306 | 306 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。