From ed3df9cbb80b8c8c3adba4ec49b3a4fcc99cc8a3 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 12 May 2026 23:13:32 +0100 Subject: [PATCH] test: dedupe tools catalog mock reads --- src/gateway/server-methods/tools-catalog.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gateway/server-methods/tools-catalog.test.ts b/src/gateway/server-methods/tools-catalog.test.ts index 6f1eee9972f..802d38a1915 100644 --- a/src/gateway/server-methods/tools-catalog.test.ts +++ b/src/gateway/server-methods/tools-catalog.test.ts @@ -54,7 +54,7 @@ function createInvokeParams(params: Record) { } function firstMockArg(mock: { mock: { calls: unknown[][] } }, label: string): unknown { - const arg = mock.mock.calls.at(0)?.at(0); + const arg = mock.mock.calls[0]?.[0]; if (arg === undefined) { throw new Error(`Expected ${label}`); } @@ -62,7 +62,7 @@ function firstMockArg(mock: { mock: { calls: unknown[][] } }, label: string): un } function respondCall(respond: ReturnType): RespondCall { - const call = respond.mock.calls.at(0) as RespondCall | undefined; + const call = respond.mock.calls[0] as RespondCall | undefined; if (!call) { throw new Error("expected respond call"); }