test: normalize windows path assertions

This commit is contained in:
Peter Steinberger
2026-01-09 18:32:35 +01:00
parent a06b6c807e
commit 6aac3184c3
2 changed files with 15 additions and 2 deletions

View File

@@ -26,7 +26,10 @@ describe("media store", () => {
it("creates and returns media directory", async () => {
const dir = await store.ensureMediaDir();
expect(dir).toContain("clawdbot-home-test");
const normalized = path.normalize(dir);
expect(normalized).toContain(
`${path.sep}.clawdbot${path.sep}media`,
);
const stat = await fs.stat(dir);
expect(stat.isDirectory()).toBe(true);
});