test(auth): mock locked auth profile upserts · openclaw/openclaw@a932833
vincentkoc
·
2026-05-16
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -41,9 +41,10 @@ vi.mock("../plugins/provider-auth-choices.js", () => ({
|
41 | 41 | resolveManifestProviderAuthChoice, |
42 | 42 | })); |
43 | 43 | |
44 | | -const upsertAuthProfile = vi.hoisted(() => vi.fn()); |
| 44 | +const upsertAuthProfile = vi.hoisted(() => vi.fn(() => ({ version: 1, profiles: {} }))); |
45 | 45 | vi.mock("../agents/auth-profiles.js", () => ({ |
46 | 46 | upsertAuthProfile, |
| 47 | +upsertAuthProfileWithLock: upsertAuthProfile, |
47 | 48 | })); |
48 | 49 | |
49 | 50 | const resolveDefaultAgentId = vi.hoisted(() => vi.fn(() => "default")); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。