test: assert memory watcher concrete paths · openclaw/openclaw@8159efa
shakkernerd
·
2026-05-08
·
via Recent Commits to openclaw:main
File tree
extensions/memory-core/src/memory
| Original file line number | Diff line number | Diff line change |
|---|
@@ -173,7 +173,7 @@ describe("memory watcher config", () => {
|
173 | 173 | extraDir, |
174 | 174 | ]), |
175 | 175 | ); |
176 | | -expect(watchedPaths.every((watchPath) => !watchPath.includes("*"))).toBe(true); |
| 176 | +expect(watchedPaths).not.toContainEqual(expect.stringContaining("*")); |
177 | 177 | expect(options.ignoreInitial).toBe(true); |
178 | 178 | expect(options.awaitWriteFinish).toEqual({ stabilityThreshold: 25, pollInterval: 100 }); |
179 | 179 | |
@@ -225,7 +225,7 @@ describe("memory watcher config", () => {
|
225 | 225 | expect(watchedPaths).toEqual( |
226 | 226 | expect.arrayContaining([path.join(workspaceDir, "MEMORY.md"), path.join(extraDir)]), |
227 | 227 | ); |
228 | | -expect(watchedPaths.every((watchPath) => !watchPath.includes("*"))).toBe(true); |
| 228 | +expect(watchedPaths).not.toContainEqual(expect.stringContaining("*")); |
229 | 229 | |
230 | 230 | const ignored = options.ignored as WatchIgnoredFn | undefined; |
231 | 231 | expect(ignored).toBeTypeOf("function"); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。