summaryrefslogtreecommitdiff
path: root/tests/unit_node/_fs/_fs_fstat_test.ts
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-09-11 07:19:34 +1000
committerGitHub <noreply@github.com>2024-09-11 07:19:34 +1000
commita69b1e699ef76568a4a3da47939134abda545ec7 (patch)
tree951091db6743b2cd0a4e726f2d784386882a3dc3 /tests/unit_node/_fs/_fs_fstat_test.ts
parentf9007d3386bbe9f709ce413ac0cf099b86d4c4bf (diff)
BREAKING(fs): remove `Deno.FsFile.prototype.rid` (#25499)
Towards #22079 --------- Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
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(),
);