summaryrefslogtreecommitdiff
path: root/tests/unit_node/_fs/_fs_fstat_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit_node/_fs/_fs_fstat_test.ts')
-rw-r--r--tests/unit_node/_fs/_fs_fstat_test.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unit_node/_fs/_fs_fstat_test.ts b/tests/unit_node/_fs/_fs_fstat_test.ts
index e4fefbf1c..afcac836f 100644
--- a/tests/unit_node/_fs/_fs_fstat_test.ts
+++ b/tests/unit_node/_fs/_fs_fstat_test.ts
@@ -15,6 +15,7 @@ Deno.test({
using file = await Deno.open(filePath);
await new Promise<Stats>((resolve, reject) => {
+ // @ts-ignore (iuioiua) `file.rid` should no longer be needed once FDs are used
fstat(file.rid, (err: Error | null, stat: Stats) => {
if (err) reject(err);
resolve(stat);
@@ -43,6 +44,7 @@ Deno.test({
await new Promise<BigIntStats>((resolve, reject) => {
fstat(
+ // @ts-ignore (iuioiua) `file.rid` should no longer be needed once FDs are used
file.rid,
{ bigint: true },
(err: Error | null, stat: BigIntStats) => {
@@ -71,6 +73,7 @@ Deno.test({
using file = Deno.openSync(filePath);
try {
+ // @ts-ignore (iuioiua) `file.rid` should no longer be needed once FDs are used
assertStats(fstatSync(file.rid), file.statSync());
} finally {
Deno.removeSync(filePath);
@@ -89,9 +92,11 @@ Deno.test({
try {
// HEAD
+ // @ts-ignore (iuioiua) `file.rid` should no longer be needed once FDs are used
assertStatsBigInt(fstatSync(file.rid, { bigint: true }), file.statSync());
//
assertStatsBigInt(
+ // @ts-ignore (iuioiua) `file.rid` should no longer be needed once FDs are used
fstatSync(file.rid, { bigint: true }),
file.statSync(),
);