test: dedupe codex user input mock read · openclaw/openclaw@2cae5e9
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
File tree
extensions/codex/src/app-server
| Original file line number | Diff line number | Diff line change |
|---|
@@ -15,7 +15,7 @@ function expectFirstBlockReplyText(params: EmbeddedRunAttemptParams): string {
|
15 | 15 | if (onBlockReply === undefined) { |
16 | 16 | throw new Error("Expected onBlockReply callback"); |
17 | 17 | } |
18 | | -const payload = vi.mocked(onBlockReply).mock.calls.at(0)?.[0]; |
| 18 | +const payload = vi.mocked(onBlockReply).mock.calls[0]?.[0]; |
19 | 19 | if (typeof payload?.text !== "string") { |
20 | 20 | throw new Error("Expected first block reply text"); |
21 | 21 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。