test: dedupe api key mock read · openclaw/openclaw@48eb4e3
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
File tree
src/commands/onboard-non-interactive
| Original file line number | Diff line number | Diff line change |
|---|
@@ -191,7 +191,7 @@ describe("resolveNonInteractiveApiKey", () => {
|
191 | 191 | |
192 | 192 | expect(result).toEqual({ key: "custom-profile-key", source: "profile" }); |
193 | 193 | expect(resolveApiKeyForProfile).toHaveBeenCalledOnce(); |
194 | | -const [profileParams] = resolveApiKeyForProfile.mock.calls.at(0) ?? []; |
| 194 | +const [profileParams] = resolveApiKeyForProfile.mock.calls[0] ?? []; |
195 | 195 | expect(profileParams?.profileId).toBe("custom-models-custom-local:default"); |
196 | 196 | }); |
197 | 197 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。