test: clarify bootstrap extra path assertion · openclaw/openclaw@29689c6
steipete
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -68,8 +68,8 @@ describe("bootstrap-extra-files hook", () => {
|
68 | 68 | |
69 | 69 | const injected = context.bootstrapFiles.filter((f) => f.name === "AGENTS.md"); |
70 | 70 | expect(injected).toHaveLength(2); |
71 | | -expect(injected.some((f) => f.path.endsWith(path.join("packages", "core", "AGENTS.md")))).toBe( |
72 | | -true, |
| 71 | +expect(injected.map((f) => path.relative(tempDir, f.path))).toContain( |
| 72 | +path.join("packages", "core", "AGENTS.md"), |
73 | 73 | ); |
74 | 74 | }); |
75 | 75 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。