test(release): satisfy doctor migration lint · openclaw/openclaw@c951867
steipete
·
2026-05-29
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -164,13 +164,14 @@ describe("doctor command", () => {
|
164 | 164 | } |
165 | 165 | } |
166 | 166 | |
167 | | -const written = writeConfigFile.mock.calls |
168 | | -.map((call) => call[0] as Record<string, unknown>) |
169 | | -.filter((candidate) => { |
170 | | -const auth = candidate.auth as { profiles?: unknown } | undefined; |
171 | | -return Boolean(auth?.profiles); |
172 | | -}) |
173 | | -.at(-1); |
| 167 | +let written: Record<string, unknown> | undefined; |
| 168 | +for (const call of writeConfigFile.mock.calls) { |
| 169 | +const candidate = call[0] as Record<string, unknown>; |
| 170 | +const auth = candidate.auth as { profiles?: unknown } | undefined; |
| 171 | +if (auth?.profiles) { |
| 172 | +written = candidate; |
| 173 | +} |
| 174 | +} |
174 | 175 | if (!written) { |
175 | 176 | throw new Error("Expected doctor to write migrated auth profiles"); |
176 | 177 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。