test: dedupe local auth choice mock read · openclaw/openclaw@e928062
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
File tree
src/commands/onboard-non-interactive/local
| Original file line number | Diff line number | Diff line change |
|---|
@@ -127,7 +127,7 @@ describe("applyNonInteractiveAuthChoice", () => {
|
127 | 127 | "custom-models-custom-local/local-large", |
128 | 128 | ); |
129 | 129 | expect(resolveNonInteractiveApiKey).toHaveBeenCalledOnce(); |
130 | | -const [apiKeyParams] = resolveNonInteractiveApiKey.mock.calls.at(0) ?? []; |
| 130 | +const [apiKeyParams] = resolveNonInteractiveApiKey.mock.calls[0] ?? []; |
131 | 131 | expect(apiKeyParams?.provider).toBe("custom-models-custom-local"); |
132 | 132 | expect(apiKeyParams?.flagName).toBe("--custom-api-key"); |
133 | 133 | expect(apiKeyParams?.envVar).toBe("CUSTOM_API_KEY"); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。