test: dedupe nostr mock call helper · openclaw/openclaw@8019024
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -102,11 +102,11 @@ async function startGatewayHarness(params: {
|
102 | 102 | } |
103 | 103 | |
104 | 104 | function mockCallArg(mock: ReturnType<typeof vi.fn>, callIndex = 0, argIndex = 0): unknown { |
105 | | -const call = mock.mock.calls.at(callIndex); |
| 105 | +const call = mock.mock.calls[callIndex]; |
106 | 106 | if (!call) { |
107 | 107 | throw new Error(`Expected mock call ${callIndex}`); |
108 | 108 | } |
109 | | -return call.at(argIndex); |
| 109 | +return call[argIndex]; |
110 | 110 | } |
111 | 111 | |
112 | 112 | describe("nostr inbound gateway path", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。