mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
fix(ext/node): use Deno.FsFile.statSync()
(#24234)
This commit is contained in:
parent
257f027325
commit
6819c3d7f6
1 changed files with 1 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue