test: dedupe status service mock read

This commit is contained in:
Peter Steinberger
2026-05-13 01:09:16 +01:00
parent 4b33ade05e
commit fccee9485c

View File

@@ -17,7 +17,7 @@ function createService(overrides: Partial<GatewayService>): GatewayService {
}
function requireMockArg(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`);
}