mirror of
https://github.com/denoland/deno.git
synced 2025-02-13 01:06:00 -05:00
fix assertion
This commit is contained in:
parent
33b21f5b33
commit
299cb34dee
1 changed files with 6 additions and 1 deletions
|
@ -32,7 +32,12 @@ 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 mode = tempInfo.mode! & 0o777;
|
||||
if (Deno.build.os === "windows") {
|
||||
assertEquals(mode, 0o666);
|
||||
} else {
|
||||
assertEquals(mode, 0o600);
|
||||
}
|
||||
|
||||
const readmeInfoByUrl = Deno.statSync(pathToAbsoluteFileUrl("README.md"));
|
||||
assert(readmeInfoByUrl.isFile);
|
||||
|
|
Loading…
Add table
Reference in a new issue