mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 10:10:44 +00:00
test: assert memory watcher concrete paths
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user