mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-12 10:20:43 +00:00
test: tighten fs-safe directory assertion
This commit is contained in:
@@ -388,9 +388,8 @@ describe("fs-safe", () => {
|
||||
|
||||
await (await openRoot(root)).mkdir(path.join("alias", "nested", "deeper"));
|
||||
|
||||
await expect(fs.stat(path.join(realDir, "nested", "deeper"))).resolves.toMatchObject({
|
||||
isDirectory: expect.any(Function),
|
||||
});
|
||||
const stat = await fs.stat(path.join(realDir, "nested", "deeper"));
|
||||
expect(stat.isDirectory()).toBe(true);
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user