diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-08-16 00:30:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-15 23:30:06 +0000 |
commit | b6c74aab240430fa70c057be825ce766d2314e02 (patch) | |
tree | 6e2b3f690411f41de77972339f4145d2c85b31b8 /tests/unit/stat_test.ts | |
parent | a58494483a2c618636697e05f9c799b03e405056 (diff) |
Revert "test: run unit tests with DENO_FUTURE=1 (#24400)" (#25060)
This reverts commit 22a834ff5b4b312b8f91be8991f2b495d49fad2f.
Appears this commit might have broken tests on `main`.
Diffstat (limited to 'tests/unit/stat_test.ts')
-rw-r--r-- | tests/unit/stat_test.ts | 55 |
1 files changed, 24 insertions, 31 deletions
diff --git a/tests/unit/stat_test.ts b/tests/unit/stat_test.ts index f9d780031..e64b47536 100644 --- a/tests/unit/stat_test.ts +++ b/tests/unit/stat_test.ts @@ -7,41 +7,34 @@ import { assertEquals, assertRejects, assertThrows, - DENO_FUTURE, pathToAbsoluteFileUrl, } from "./test_util.ts"; -Deno.test( - { ignore: DENO_FUTURE, permissions: { read: true } }, - function fstatSyncSuccess() { - using file = Deno.openSync("README.md"); - const fileInfo = Deno.fstatSync(file.rid); - assert(fileInfo.isFile); - assert(!fileInfo.isSymlink); - assert(!fileInfo.isDirectory); - assert(fileInfo.size); - assert(fileInfo.atime); - assert(fileInfo.mtime); - // The `birthtime` field is not available on Linux before kernel version 4.11. - assert(fileInfo.birthtime || Deno.build.os === "linux"); - }, -); +Deno.test({ permissions: { read: true } }, function fstatSyncSuccess() { + using file = Deno.openSync("README.md"); + const fileInfo = Deno.fstatSync(file.rid); + assert(fileInfo.isFile); + assert(!fileInfo.isSymlink); + assert(!fileInfo.isDirectory); + assert(fileInfo.size); + assert(fileInfo.atime); + assert(fileInfo.mtime); + // The `birthtime` field is not available on Linux before kernel version 4.11. + assert(fileInfo.birthtime || Deno.build.os === "linux"); +}); -Deno.test( - { ignore: DENO_FUTURE, permissions: { read: true } }, - async function fstatSuccess() { - using file = await Deno.open("README.md"); - const fileInfo = await Deno.fstat(file.rid); - assert(fileInfo.isFile); - assert(!fileInfo.isSymlink); - assert(!fileInfo.isDirectory); - assert(fileInfo.size); - assert(fileInfo.atime); - assert(fileInfo.mtime); - // The `birthtime` field is not available on Linux before kernel version 4.11. - assert(fileInfo.birthtime || Deno.build.os === "linux"); - }, -); +Deno.test({ permissions: { read: true } }, async function fstatSuccess() { + using file = await Deno.open("README.md"); + const fileInfo = await Deno.fstat(file.rid); + assert(fileInfo.isFile); + assert(!fileInfo.isSymlink); + assert(!fileInfo.isDirectory); + assert(fileInfo.size); + assert(fileInfo.atime); + assert(fileInfo.mtime); + // The `birthtime` field is not available on Linux before kernel version 4.11. + assert(fileInfo.birthtime || Deno.build.os === "linux"); +}); Deno.test( { permissions: { read: true, write: true } }, |