0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-13 01:06:00 -05:00

test: check info.mode exists on windows

This commit is contained in:
Yoshiya Hinosawa 2024-11-01 20:36:07 +09:00
parent 4230868c3d
commit 33b21f5b33
No known key found for this signature in database
GPG key ID: 9017DB4559488785

View file

@ -32,6 +32,7 @@ Deno.test(
tempInfo.birthtime === null || now - tempInfo.birthtime.valueOf() < 1000,
);
assert(tempInfo.ctime !== null && now - tempInfo.ctime.valueOf() < 1000);
assertEquals(tempInfo.mode! & 0o777, 0o600);
const readmeInfoByUrl = Deno.statSync(pathToAbsoluteFileUrl("README.md"));
assert(readmeInfoByUrl.isFile);