mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
fix(ext/node): use Deno.FsFile.statSync()
(#24234)
This commit is contained in:
parent
e73f614b46
commit
a8c7aec937
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