test: tighten prompt snapshot catalog assertions · openclaw/openclaw@805b959
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -177,8 +177,12 @@ describe("happy path prompt snapshots", () => {
|
177 | 177 | fs.mkdirSync(path.dirname(cachePath), { recursive: true }); |
178 | 178 | fs.writeFileSync(cachePath, JSON.stringify({ models: [] })); |
179 | 179 | |
180 | | -await expect(findDefaultCatalogPath({ env: {}, homeDir: root })).resolves.toMatchObject({ |
| 180 | +await expect(findDefaultCatalogPath({ env: {}, homeDir: root })).resolves.toEqual({ |
181 | 181 | catalogPath: cachePath, |
| 182 | +candidates: [ |
| 183 | +cachePath, |
| 184 | +path.join(root, "code", "codex", "codex-rs", "models-manager", "models.json"), |
| 185 | +], |
182 | 186 | }); |
183 | 187 | } finally { |
184 | 188 | fs.rmSync(root, { recursive: true, force: true }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。