test: dedupe approval gateway mock read

This commit is contained in:
Peter Steinberger
2026-05-13 04:54:36 +01:00
parent 0cd0e57e9c
commit abc2f57768

View File

@@ -11,7 +11,7 @@ vi.mock("../gateway/operator-approvals-client.js", () => ({
}));
function requireFirstMockCall<T>(mock: { mock: { calls: T[][] } }, label: string): T[] {
const call = mock.mock.calls.at(0);
const call = mock.mock.calls[0];
if (!call) {
throw new Error(`expected ${label} call`);
}