test: dedupe qa credential lease mock read

This commit is contained in:
Peter Steinberger
2026-05-13 06:57:56 +01:00
parent 2a931b5906
commit 7de4c47da2

View File

@@ -14,7 +14,7 @@ function jsonResponse(payload: unknown, status = 200) {
type FetchMock = { mock: { calls: Parameters<typeof fetch>[] } };
function fetchCall(fetchImpl: FetchMock, index = 0): Parameters<typeof fetch> {
const call = fetchImpl.mock.calls.at(index);
const call = fetchImpl.mock.calls[index];
if (!call) {
throw new Error(`expected fetch call ${index}`);
}