test: dedupe inbound reply mock read

This commit is contained in:
Peter Steinberger
2026-05-13 08:30:05 +01:00
parent 52a02ab310
commit 27af4f618e

View File

@@ -39,7 +39,7 @@ import {
} from "./inbound-reply-dispatch.js";
function readFirstMockArg(fn: unknown): unknown {
return (fn as { mock: { calls: unknown[][] } }).mock.calls.at(0)?.[0];
return (fn as { mock: { calls: unknown[][] } }).mock.calls[0]?.[0];
}
describe("recordInboundSessionAndDispatchReply", () => {