diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-03-16 19:14:56 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-17 00:14:56 +0100 |
| commit | 3f031ad9af2d61671f8408632f31592ac4186926 (patch) | |
| tree | a1702dffb6794e3154cc6d89e0961fcfdb480a3c /cli/tests | |
| parent | 8efda832e2c2a5652a0229ee6628ff704d39285f (diff) | |
BREAKING(ext/fs): FileInfo.dev is defined on Windows (#18237)
Addresses feedback from
https://github.com/denoland/deno/pull/18073#issuecomment-1471480385.
Reverts changes to `FileInfo` fields that are not available on Windows
making them `null`. Only `FileInfo.dev` is non-null.
Diffstat (limited to 'cli/tests')
| -rw-r--r-- | cli/tests/unit/stat_test.ts | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/cli/tests/unit/stat_test.ts b/cli/tests/unit/stat_test.ts index 572e54e25..f386fd92f 100644 --- a/cli/tests/unit/stat_test.ts +++ b/cli/tests/unit/stat_test.ts @@ -291,7 +291,7 @@ Deno.test( ignore: Deno.build.os !== "windows", permissions: { read: true, write: true }, }, - function statUnixFieldsOnWindows() { + function statNoUnixFields() { const enc = new TextEncoder(); const data = enc.encode("Hello"); const tempDir = Deno.makeTempDirSync(); @@ -299,14 +299,14 @@ Deno.test( Deno.writeFileSync(filename, data, { mode: 0o666 }); const s = Deno.statSync(filename); assert(s.dev !== 0); - assert(s.ino === 0); - assert(s.mode === 0); - assert(s.nlink === 0); - assert(s.uid === 0); - assert(s.gid === 0); - assert(s.rdev === 0); - assert(s.blksize === 0); - assert(s.blocks === 0); + assert(s.ino === null); + assert(s.mode === null); + assert(s.nlink === null); + assert(s.uid === null); + assert(s.gid === null); + assert(s.rdev === null); + assert(s.blksize === null); + assert(s.blocks === null); }, ); |
