mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 21:07:01 -06:00
test: dedupe fetch timeout mock read
This commit is contained in:
@@ -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}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user