(fixed): No longer path corruption on windows environment (at least, pass the check) on CLI

This commit is contained in:
vorotamoroz
2026-06-04 10:17:34 +01:00
parent 99f3aca024
commit f8998d5441
2 changed files with 3 additions and 5 deletions
@@ -80,9 +80,7 @@ describe("CLIStorageEventManagerAdapter", () => {
expect(handlers.onCreate).toHaveBeenCalledTimes(1);
const created = (handlers.onCreate as ReturnType<typeof vi.fn>).mock.calls[0][0] as NodeFile;
if (process.platform !== "win32") {
expect(created.path).toBe("subdir/note.md");
}
expect(created.path).toBe("subdir/note.md");
expect(created.stat?.size).toBe(42);
});