test: dedupe fetch timeout mock read

This commit is contained in:
Peter Steinberger
2026-05-13 06:15:29 +01:00
parent 6715ac526e
commit b25f657394
+1 -1
View File
@@ -12,7 +12,7 @@ vi.mock("../logging/subsystem.js", () => ({
import { buildTimeoutAbortSignal } from "./fetch-timeout.js";
function requireWarnCall(callIndex: number): [string, Record<string, unknown>] {
const call = warn.mock.calls.at(callIndex);
const call = warn.mock.calls[callIndex];
if (!call) {
throw new Error(`missing warning call ${callIndex}`);
}