mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 23:56:07 +00:00
test: dedupe nostr mock call helper
This commit is contained in:
@@ -102,11 +102,11 @@ async function startGatewayHarness(params: {
|
||||
}
|
||||
|
||||
function mockCallArg(mock: ReturnType<typeof vi.fn>, callIndex = 0, argIndex = 0): unknown {
|
||||
const call = mock.mock.calls.at(callIndex);
|
||||
const call = mock.mock.calls[callIndex];
|
||||
if (!call) {
|
||||
throw new Error(`Expected mock call ${callIndex}`);
|
||||
}
|
||||
return call.at(argIndex);
|
||||
return call[argIndex];
|
||||
}
|
||||
|
||||
describe("nostr inbound gateway path", () => {
|
||||
|
||||
Reference in New Issue
Block a user