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:
parent
4230868c3d
commit
33b21f5b33
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue