summaryrefslogtreecommitdiff
path: root/cli/tests/unit/write_file_test.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2020-07-14 15:24:17 -0400
committerGitHub <noreply@github.com>2020-07-14 15:24:17 -0400
commitcde4dbb35132848ffece59ef9cfaccff32347124 (patch)
treecc7830968c6decde704c8cfb83c9185193dc698f /cli/tests/unit/write_file_test.ts
parent9eca71caa1674c31f9cc5d4e86c03f10b59e0a00 (diff)
Use dprint for internal formatting (#6682)
Diffstat (limited to 'cli/tests/unit/write_file_test.ts')
-rw-r--r--cli/tests/unit/write_file_test.ts28
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);
- }
+ },
);