mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-14 22:32:51 +00:00
test: dedupe api key mock read
This commit is contained in:
@@ -191,7 +191,7 @@ describe("resolveNonInteractiveApiKey", () => {
|
||||
|
||||
expect(result).toEqual({ key: "custom-profile-key", source: "profile" });
|
||||
expect(resolveApiKeyForProfile).toHaveBeenCalledOnce();
|
||||
const [profileParams] = resolveApiKeyForProfile.mock.calls.at(0) ?? [];
|
||||
const [profileParams] = resolveApiKeyForProfile.mock.calls[0] ?? [];
|
||||
expect(profileParams?.profileId).toBe("custom-models-custom-local:default");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user