mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-05 09:31:27 +00:00
test: dedupe auth profile mock read
This commit is contained in:
@@ -29,7 +29,7 @@ let loadAuthProfileStoreForRuntime: typeof import("./auth-profiles.js").loadAuth
|
||||
type MockWithCalls = { mock: { calls: unknown[][] } };
|
||||
|
||||
function firstMockArg(mock: MockWithCalls, label: string) {
|
||||
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