diff options
Diffstat (limited to 'cli/tests/unit_node/_fs/_fs_ftruncate_test.ts')
-rw-r--r-- | cli/tests/unit_node/_fs/_fs_ftruncate_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tests/unit_node/_fs/_fs_ftruncate_test.ts b/cli/tests/unit_node/_fs/_fs_ftruncate_test.ts index a843b19b7..4c2c34789 100644 --- a/cli/tests/unit_node/_fs/_fs_ftruncate_test.ts +++ b/cli/tests/unit_node/_fs/_fs_ftruncate_test.ts @@ -24,7 +24,7 @@ Deno.test({ name: "ASYNC: truncate entire file contents", async fn() { const file: string = Deno.makeTempFileSync(); - await Deno.writeFile(file, new TextEncoder().encode("hello world")); + await Deno.writeTextFile(file, "hello world"); const { rid } = await Deno.open(file, { read: true, write: true, @@ -57,7 +57,7 @@ Deno.test({ name: "ASYNC: truncate file to a size of precisely len bytes", async fn() { const file: string = Deno.makeTempFileSync(); - await Deno.writeFile(file, new TextEncoder().encode("hello world")); + await Deno.writeTextFile(file, "hello world"); const { rid } = await Deno.open(file, { read: true, write: true, |