mirror of
https://github.com/denoland/deno.git
synced 2024-11-28 16:20:57 -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.
|
// 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 { fstat, fstatSync } from "node:fs";
|
||||||
import { fail } from "@std/assert/mod.ts";
|
import { fail } from "@std/assert/mod.ts";
|
||||||
import { assertStats, assertStatsBigInt } from "./_fs_stat_test.ts";
|
import { assertStats, assertStatsBigInt } from "./_fs_stat_test.ts";
|
||||||
|
@ -83,7 +81,7 @@ Deno.test({
|
||||||
//
|
//
|
||||||
assertStatsBigInt(
|
assertStatsBigInt(
|
||||||
fstatSync(file.rid, { bigint: true }),
|
fstatSync(file.rid, { bigint: true }),
|
||||||
Deno.fstatSync(file.rid),
|
file.statSync(),
|
||||||
);
|
);
|
||||||
//main
|
//main
|
||||||
} finally {
|
} finally {
|
||||||
|
|
Loading…
Reference in a new issue