mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-12 12:30:44 +00:00
test: tighten temp home directory assertion
This commit is contained in:
@@ -17,9 +17,8 @@ describe("createTempHomeEnv", () => {
|
||||
expect(process.env.HOME).toBe(tempHome.home);
|
||||
expect(process.env.USERPROFILE).toBe(tempHome.home);
|
||||
expect(process.env.OPENCLAW_STATE_DIR).toBe(path.join(tempHome.home, ".openclaw"));
|
||||
await expect(fs.stat(tempHome.home)).resolves.toMatchObject({
|
||||
isDirectory: expect.any(Function),
|
||||
});
|
||||
const homeStat = await fs.stat(tempHome.home);
|
||||
expect(homeStat.isDirectory()).toBe(true);
|
||||
|
||||
await tempHome.restore();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user