test: dedupe npm pack temp dir mock read · openclaw/openclaw@86dfc78
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -92,7 +92,7 @@ describe("installFromNpmSpecArchive", () => {
|
92 | 92 | expect(installFromArchive).not.toHaveBeenCalled(); |
93 | 93 | const withTempDirMock = vi.mocked(withTempDir); |
94 | 94 | expect(withTempDirMock).toHaveBeenCalledTimes(1); |
95 | | -const tempDirCall = withTempDirMock.mock.calls.at(0); |
| 95 | +const tempDirCall = withTempDirMock.mock.calls[0]; |
96 | 96 | if (tempDirCall === undefined) { |
97 | 97 | throw new Error("expected temp dir call"); |
98 | 98 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。