test: tighten memory event artifact path assertions · openclaw/openclaw@79bbdfa
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
File tree
extensions/memory-core/src
| Original file line number | Diff line number | Diff line change |
|---|
@@ -86,10 +86,10 @@ describe("memory host event journal integration", () => {
|
86 | 86 | |
87 | 87 | const events = await readMemoryHostEvents({ workspaceDir }); |
88 | 88 | |
89 | | -expect(written.inlinePath).toEqual( |
90 | | -expect.stringContaining(path.join("memory", "2026-04-05.md")), |
| 89 | +expect(written.inlinePath).toBe(path.join(workspaceDir, "memory", "2026-04-05.md")); |
| 90 | +expect(written.reportPath).toBe( |
| 91 | +path.join(workspaceDir, "memory", "dreaming", "light", "2026-04-05.md"), |
91 | 92 | ); |
92 | | -expect(written.reportPath).toEqual(expect.stringContaining(path.join("memory", "dreaming"))); |
93 | 93 | await expect(fs.readFile(written.inlinePath ?? "", "utf8")).resolves.toContain("- staged note"); |
94 | 94 | await expect(fs.readFile(written.reportPath ?? "", "utf8")).resolves.toContain("- second note"); |
95 | 95 | expect(events).toHaveLength(1); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。