summaryrefslogtreecommitdiff
path: root/tests/unit_node/_fs/_fs_fdatasync_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_fdatasync_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_fdatasync_test.ts')
-rw-r--r--tests/unit_node/_fs/_fs_fdatasync_test.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit_node/_fs/_fs_fdatasync_test.ts b/tests/unit_node/_fs/_fs_fdatasync_test.ts
index a3955ddbb..40ca2969f 100644
--- a/tests/unit_node/_fs/_fs_fdatasync_test.ts
+++ b/tests/unit_node/_fs/_fs_fdatasync_test.ts
@@ -19,6 +19,7 @@ Deno.test({
await file.write(data);
await new Promise<void>((resolve, reject) => {
+ // @ts-ignore (iuioiua) `file.rid` should no longer be needed once FDs are used
fdatasync(file.rid, (err: Error | null) => {
if (err !== null) reject();
else resolve();
@@ -55,6 +56,7 @@ Deno.test({
file.writeSync(data);
try {
+ // @ts-ignore (iuioiua) `file.rid` should no longer be needed once FDs are used
fdatasyncSync(file.rid);
assertEquals(Deno.readFileSync(filePath), data);
} finally {