test: dedupe outbound send mock read · openclaw/openclaw@0b0539a
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -15,7 +15,7 @@ describe("createChannelOutboundRuntimeSend", () => {
|
15 | 15 | |
16 | 16 | function expectSingleCallParams(mockFn: ReturnType<typeof vi.fn>) { |
17 | 17 | expect(mockFn).toHaveBeenCalledTimes(1); |
18 | | -const params = mockFn.mock.calls.at(0)?.[0] as Record<string, unknown> | undefined; |
| 18 | +const params = mockFn.mock.calls[0]?.[0] as Record<string, unknown> | undefined; |
19 | 19 | if (params === undefined) { |
20 | 20 | throw new Error("expected outbound send call params"); |
21 | 21 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。