diff options
Diffstat (limited to 'cli/tests/unit/write_file_test.ts')
-rw-r--r-- | cli/tests/unit/write_file_test.ts | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/cli/tests/unit/write_file_test.ts b/cli/tests/unit/write_file_test.ts index bbe1daf38..a48333b9d 100644 --- a/cli/tests/unit/write_file_test.ts +++ b/cli/tests/unit/write_file_test.ts @@ -17,7 +17,7 @@ unitTest( const dec = new TextDecoder("utf-8"); const actual = dec.decode(dataRead); assertEquals("Hello", actual); - } + }, ); unitTest( @@ -27,7 +27,7 @@ unitTest( const data = enc.encode("Hello"); const tempDir = Deno.makeTempDirSync(); const fileUrl = new URL( - `file://${Deno.build.os === "windows" ? "/" : ""}${tempDir}/test.txt` + `file://${Deno.build.os === "windows" ? "/" : ""}${tempDir}/test.txt`, ); Deno.writeFileSync(fileUrl, data); const dataRead = Deno.readFileSync(fileUrl); @@ -36,7 +36,7 @@ unitTest( assertEquals("Hello", actual); Deno.removeSync(tempDir, { recursive: true }); - } + }, ); unitTest({ perms: { write: true } }, function writeFileSyncFail(): void { @@ -71,7 +71,7 @@ unitTest( Deno.writeFileSync(filename, data, { mode: 0o666 }); assertEquals(Deno.statSync(filename).mode! & 0o777, 0o666); } - } + }, ); unitTest( @@ -92,7 +92,7 @@ unitTest( const dec = new TextDecoder("utf-8"); const actual = dec.decode(dataRead); assertEquals("Hello", actual); - } + }, ); unitTest( @@ -117,7 +117,7 @@ unitTest( dataRead = Deno.readFileSync(filename); actual = dec.decode(dataRead); assertEquals("Hello", actual); - } + }, ); unitTest( @@ -131,7 +131,7 @@ unitTest( const dec = new TextDecoder("utf-8"); const actual = dec.decode(dataRead); assertEquals("Hello", actual); - } + }, ); unitTest( @@ -141,7 +141,7 @@ unitTest( const data = enc.encode("Hello"); const tempDir = await Deno.makeTempDir(); const fileUrl = new URL( - `file://${Deno.build.os === "windows" ? "/" : ""}${tempDir}/test.txt` + `file://${Deno.build.os === "windows" ? "/" : ""}${tempDir}/test.txt`, ); await Deno.writeFile(fileUrl, data); const dataRead = Deno.readFileSync(fileUrl); @@ -150,7 +150,7 @@ unitTest( assertEquals("Hello", actual); Deno.removeSync(tempDir, { recursive: true }); - } + }, ); unitTest( @@ -163,7 +163,7 @@ unitTest( await assertThrowsAsync(async () => { await Deno.writeFile(filename, data); }, Deno.errors.NotFound); - } + }, ); unitTest( @@ -176,7 +176,7 @@ unitTest( await assertThrowsAsync(async () => { await Deno.writeFile(filename, data); }, Deno.errors.PermissionDenied); - } + }, ); unitTest( @@ -191,7 +191,7 @@ unitTest( await Deno.writeFile(filename, data, { mode: 0o666 }); assertEquals(Deno.statSync(filename).mode! & 0o777, 0o666); } - } + }, ); unitTest( @@ -212,7 +212,7 @@ unitTest( const dec = new TextDecoder("utf-8"); const actual = dec.decode(dataRead); assertEquals("Hello", actual); - } + }, ); unitTest( @@ -237,5 +237,5 @@ unitTest( dataRead = Deno.readFileSync(filename); actual = dec.decode(dataRead); assertEquals("Hello", actual); - } + }, ); |