test: dedupe codex binding mock helper · openclaw/openclaw@62adbe0
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -30,11 +30,11 @@ import {
|
30 | 30 | let tempDir: string; |
31 | 31 | |
32 | 32 | function mockCallArg(mock: ReturnType<typeof vi.fn>, callIndex = 0, argIndex = 0): unknown { |
33 | | -const call = mock.mock.calls.at(callIndex); |
| 33 | +const call = mock.mock.calls[callIndex]; |
34 | 34 | if (!call) { |
35 | 35 | throw new Error(`Expected mock call ${callIndex}`); |
36 | 36 | } |
37 | | -return call.at(argIndex); |
| 37 | +return call[argIndex]; |
38 | 38 | } |
39 | 39 | |
40 | 40 | describe("codex conversation binding", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。