diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-06-18 08:40:05 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-17 22:40:05 +0000 |
commit | 6819c3d7f6b1f4314e3b88072c3ca2ef8f3bb358 (patch) | |
tree | 73b19d50dd727e74f3ca2b0d21d49ca8d1c02e93 | |
parent | 257f0273250087bd5080430fe4c780b208d7986c (diff) |
fix(ext/node): use `Deno.FsFile.statSync()` (#24234)
-rw-r--r-- | tests/unit_node/_fs/_fs_fstat_test.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/unit_node/_fs/_fs_fstat_test.ts b/tests/unit_node/_fs/_fs_fstat_test.ts index 1464b05c5..b0c767bcf 100644 --- a/tests/unit_node/_fs/_fs_fstat_test.ts +++ b/tests/unit_node/_fs/_fs_fstat_test.ts @@ -1,7 +1,5 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. -// deno-lint-ignore-file no-deprecated-deno-api - import { fstat, fstatSync } from "node:fs"; import { fail } from "@std/assert/mod.ts"; import { assertStats, assertStatsBigInt } from "./_fs_stat_test.ts"; @@ -83,7 +81,7 @@ Deno.test({ // assertStatsBigInt( fstatSync(file.rid, { bigint: true }), - Deno.fstatSync(file.rid), + file.statSync(), ); //main } finally { |