test: tighten memory wiki absence assertion · openclaw/openclaw@4fe43b9
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
File tree
extensions/memory-wiki/src
| Original file line number | Diff line number | Diff line change |
|---|
@@ -30,6 +30,10 @@ describe("compileMemoryWikiVault", () => {
|
30 | 30 | return path.join(suiteRoot, `case-${caseId++}`); |
31 | 31 | } |
32 | 32 | |
| 33 | +async function expectPathMissing(targetPath: string): Promise<void> { |
| 34 | +await expect(fs.access(targetPath)).rejects.toMatchObject({ code: "ENOENT" }); |
| 35 | +} |
| 36 | + |
33 | 37 | it("writes root and directory indexes for native markdown", async () => { |
34 | 38 | const { rootDir, config } = await createVault({ |
35 | 39 | rootDir: nextCaseRoot(), |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。