Tests: normalize HOME expansion assertion on Windows

This commit is contained in:
Onur
2026-03-01 18:46:51 +01:00
committed by Onur Solmaz
parent 18033d3962
commit ac5d7ee4cd

View File

@@ -182,7 +182,7 @@ describe("tilde expansion in file tools", () => {
process.env.HOME = fakeHome;
try {
const result = expandHomePrefix("~/file.txt");
expect(result).toBe(`${fakeHome}/file.txt`);
expect(path.normalize(result)).toBe(path.join(path.resolve(fakeHome), "file.txt"));
} finally {
process.env.HOME = originalHome;
}