From 4b33ade05e2de35148cb186fb17e8a4a24a73acb Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 13 May 2026 01:08:06 +0100 Subject: [PATCH] test: dedupe doctor auth mock read --- src/commands/doctor-auth.deprecated-cli-profiles.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/doctor-auth.deprecated-cli-profiles.test.ts b/src/commands/doctor-auth.deprecated-cli-profiles.test.ts index a43808cf0a4..1eb38241d48 100644 --- a/src/commands/doctor-auth.deprecated-cli-profiles.test.ts +++ b/src/commands/doctor-auth.deprecated-cli-profiles.test.ts @@ -58,7 +58,7 @@ function requireAuthConfig(config: OpenClawConfig): NonNullable(mock: { mock: { calls: T[][] } }, label: string): T { - const call = mock.mock.calls.at(0); + const call = mock.mock.calls[0]; if (!call) { throw new Error(`expected ${label} call`); }