test: dedupe doctor auth mock read

This commit is contained in:
Peter Steinberger
2026-05-13 01:08:06 +01:00
parent cf77ad5025
commit 4b33ade05e

View File

@@ -58,7 +58,7 @@ function requireAuthConfig(config: OpenClawConfig): NonNullable<OpenClawConfig["
}
function requireFirstMockArg<T>(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`);
}