test: dedupe gateway hook mock read

This commit is contained in:
Peter Steinberger
2026-05-13 05:26:12 +01:00
parent 17fa101c16
commit e68dfa511e

View File

@@ -32,7 +32,7 @@ async function expectGatewayHookCall(params: {
}
function requireFirstMockCall(mock: { mock: { calls: unknown[][] } }, label: string): unknown[] {
const call = mock.mock.calls.at(0);
const call = mock.mock.calls[0];
if (!call) {
throw new Error(`expected ${label} call`);
}