test(models): update auth profile mock · openclaw/openclaw@a16f7fb
steipete
·
2026-04-30
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -12,6 +12,10 @@ vi.mock("../../agents/auth-profiles.js", () => ({
|
12 | 12 | profiles: authProfilesStoreMock.profiles, |
13 | 13 | }), |
14 | 14 | isProfileInCooldown: () => false, |
| 15 | +listProfilesForProvider: (_store: unknown, provider: string) => |
| 16 | +Object.entries(authProfilesStoreMock.profiles) |
| 17 | +.filter(([, profile]) => profile.provider === provider) |
| 18 | +.map(([profileId, profile]) => ({ profileId, profile })), |
15 | 19 | replaceRuntimeAuthProfileStoreSnapshots: ( |
16 | 20 | snapshots: Array<{ |
17 | 21 | store?: { profiles?: Record<string, { type: "api_key"; provider: string; key: string }> }; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。