diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-09-11 07:19:34 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-11 07:19:34 +1000 |
commit | a69b1e699ef76568a4a3da47939134abda545ec7 (patch) | |
tree | 951091db6743b2cd0a4e726f2d784386882a3dc3 /tests/unit_node/_fs/_fs_fstat_test.ts | |
parent | f9007d3386bbe9f709ce413ac0cf099b86d4c4bf (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.ts | 5 |
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(), ); |