From 068e6e0291f1cdfe0260db689777ae9159d42eaf Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 13 May 2026 01:44:36 +0100 Subject: [PATCH] test: dedupe auth choice install mock read --- src/commands/auth-choice.apply.plugin-provider.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/auth-choice.apply.plugin-provider.test.ts b/src/commands/auth-choice.apply.plugin-provider.test.ts index 69d81b5abcf..db7d1b4a9ec 100644 --- a/src/commands/auth-choice.apply.plugin-provider.test.ts +++ b/src/commands/auth-choice.apply.plugin-provider.test.ts @@ -461,7 +461,7 @@ describe("applyAuthChoiceLoadedPluginProvider", () => { const result = await applyAuthChoiceLoadedPluginProvider(buildParams()); expect(ensureOnboardingPluginInstalled).toHaveBeenCalledOnce(); - const [installParams] = ensureOnboardingPluginInstalled.mock.calls.at(0) ?? []; + const [installParams] = ensureOnboardingPluginInstalled.mock.calls[0] ?? []; if (installParams === undefined) { throw new Error("expected plugin install params"); }