From 48eb4e39b20a1d04a7028ace66ed02a27cf85659 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 13 May 2026 01:20:16 +0100 Subject: [PATCH] test: dedupe api key mock read --- src/commands/onboard-non-interactive/api-keys.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/onboard-non-interactive/api-keys.test.ts b/src/commands/onboard-non-interactive/api-keys.test.ts index 11b65dfa5dd..57c8fbf314d 100644 --- a/src/commands/onboard-non-interactive/api-keys.test.ts +++ b/src/commands/onboard-non-interactive/api-keys.test.ts @@ -191,7 +191,7 @@ describe("resolveNonInteractiveApiKey", () => { expect(result).toEqual({ key: "custom-profile-key", source: "profile" }); expect(resolveApiKeyForProfile).toHaveBeenCalledOnce(); - const [profileParams] = resolveApiKeyForProfile.mock.calls.at(0) ?? []; + const [profileParams] = resolveApiKeyForProfile.mock.calls[0] ?? []; expect(profileParams?.profileId).toBe("custom-models-custom-local:default"); }); });