mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-21 11:34:46 +00:00
test: dedupe doctor auth mock read
This commit is contained in:
@@ -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`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user