mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-20 18:46:26 +00:00
test: assert memory watcher concrete paths
This commit is contained in:
parent
0ae3c84790
commit
8159efadf7
1 changed files with 2 additions and 2 deletions
|
|
@ -173,7 +173,7 @@ describe("memory watcher config", () => {
|
|||
extraDir,
|
||||
]),
|
||||
);
|
||||
expect(watchedPaths.every((watchPath) => !watchPath.includes("*"))).toBe(true);
|
||||
expect(watchedPaths).not.toContainEqual(expect.stringContaining("*"));
|
||||
expect(options.ignoreInitial).toBe(true);
|
||||
expect(options.awaitWriteFinish).toEqual({ stabilityThreshold: 25, pollInterval: 100 });
|
||||
|
||||
|
|
@ -225,7 +225,7 @@ describe("memory watcher config", () => {
|
|||
expect(watchedPaths).toEqual(
|
||||
expect.arrayContaining([path.join(workspaceDir, "MEMORY.md"), path.join(extraDir)]),
|
||||
);
|
||||
expect(watchedPaths.every((watchPath) => !watchPath.includes("*"))).toBe(true);
|
||||
expect(watchedPaths).not.toContainEqual(expect.stringContaining("*"));
|
||||
|
||||
const ignored = options.ignored as WatchIgnoredFn | undefined;
|
||||
expect(ignored).toBeTypeOf("function");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue