From 6819c3d7f6b1f4314e3b88072c3ca2ef8f3bb358 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Tue, 18 Jun 2024 08:40:05 +1000 Subject: [PATCH] fix(ext/node): use `Deno.FsFile.statSync()` (#24234) --- tests/unit_node/_fs/_fs_fstat_test.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/unit_node/_fs/_fs_fstat_test.ts b/tests/unit_node/_fs/_fs_fstat_test.ts index 1464b05c52fd91..b0c767bcf7b6d8 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 {