test: dedupe outbound send mock read

This commit is contained in:
Peter Steinberger
2026-05-13 06:43:10 +01:00
parent 07ffc2b955
commit af21973ea2

View File

@@ -126,7 +126,7 @@ function expectSingleCallFirstArg(
label = "mock first argument",
): Record<string, unknown> {
expect(mock.mock.calls).toHaveLength(1);
const [firstArg] = mock.mock.calls.at(0) ?? [];
const [firstArg] = mock.mock.calls[0] ?? [];
return requireRecord(firstArg, label);
}