test: dedupe tlon guarded fetch mock read

This commit is contained in:
Peter Steinberger
2026-05-13 08:57:52 +01:00
parent 22411e17cb
commit 96752f9804

View File

@@ -63,7 +63,7 @@ function createGuardedResult(response: Response, finalUrl: string) {
}
function guardedFetchCall(index: number): Parameters<typeof fetchWithSsrFGuard>[0] {
const call = mockGuardedFetch.mock.calls.at(index)?.at(0);
const call = mockGuardedFetch.mock.calls[index]?.at(0);
if (call === undefined) {
throw new Error(`expected guarded fetch call ${index}`);
}