test: tighten qmd models absence assertion · openclaw/openclaw@6f57548
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|
@@ -182,6 +182,10 @@ describe("QmdMemoryManager", () => {
|
182 | 182 | return value; |
183 | 183 | } |
184 | 184 | |
| 185 | +async function expectPathMissing(targetPath: string): Promise<void> { |
| 186 | +await expect(fs.lstat(targetPath)).rejects.toMatchObject({ code: "ENOENT" }); |
| 187 | +} |
| 188 | + |
185 | 189 | async function createManager(params?: { |
186 | 190 | mode?: "full" | "status" | "cli"; |
187 | 191 | cfg?: OpenClawConfig; |
|
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|
@@ -8,10 +8,6 @@ import { createMemoryWikiTestHarness } from "./test-helpers.js";
|
8 | 8 | |
9 | 9 | const { createVault } = createMemoryWikiTestHarness(); |
10 | 10 | |
11 | | -async function expectPathMissing(targetPath: string): Promise<void> { |
12 | | -await expect(fs.access(targetPath)).rejects.toMatchObject({ code: "ENOENT" }); |
13 | | -} |
14 | | - |
15 | 11 | describe("compileMemoryWikiVault", () => { |
16 | 12 | let suiteRoot = ""; |
17 | 13 | let caseId = 0; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。