test: dedupe outbound send mock read · openclaw/openclaw@af21973
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -126,7 +126,7 @@ function expectSingleCallFirstArg(
|
126 | 126 | label = "mock first argument", |
127 | 127 | ): Record<string, unknown> { |
128 | 128 | expect(mock.mock.calls).toHaveLength(1); |
129 | | -const [firstArg] = mock.mock.calls.at(0) ?? []; |
| 129 | +const [firstArg] = mock.mock.calls[0] ?? []; |
130 | 130 | return requireRecord(firstArg, label); |
131 | 131 | } |
132 | 132 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。