summaryrefslogtreecommitdiff
path: root/std/node/_fs/_fs_appendFile_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 /std/node/_fs/_fs_appendFile_test.ts
parent9eca71caa1674c31f9cc5d4e86c03f10b59e0a00 (diff)
Use dprint for internal formatting (#6682)
Diffstat (limited to 'std/node/_fs/_fs_appendFile_test.ts')
-rw-r--r--std/node/_fs/_fs_appendFile_test.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/std/node/_fs/_fs_appendFile_test.ts b/std/node/_fs/_fs_appendFile_test.ts
index 9c0ccb666..d41065205 100644
--- a/std/node/_fs/_fs_appendFile_test.ts
+++ b/std/node/_fs/_fs_appendFile_test.ts
@@ -13,7 +13,7 @@ Deno.test({
appendFile("some/path", "some data", "utf8");
},
Error,
- "No callback function supplied"
+ "No callback function supplied",
);
},
});
@@ -27,7 +27,7 @@ Deno.test({
appendFile("some/path", "some data", "made-up-encoding", () => {});
},
Error,
- "Only 'utf8' encoding is currently supported"
+ "Only 'utf8' encoding is currently supported",
);
assertThrows(
() => {
@@ -36,17 +36,17 @@ Deno.test({
"some data",
// @ts-expect-error Type '"made-up-encoding"' is not assignable to type
{ encoding: "made-up-encoding" },
- () => {}
+ () => {},
);
},
Error,
- "Only 'utf8' encoding is currently supported"
+ "Only 'utf8' encoding is currently supported",
);
assertThrows(
// @ts-expect-error Type '"made-up-encoding"' is not assignable to type
() => appendFileSync("some/path", "some data", "made-up-encoding"),
Error,
- "Only 'utf8' encoding is currently supported"
+ "Only 'utf8' encoding is currently supported",
);
assertThrows(
() =>
@@ -55,7 +55,7 @@ Deno.test({
encoding: "made-up-encoding",
}),
Error,
- "Only 'utf8' encoding is currently supported"
+ "Only 'utf8' encoding is currently supported",
);
},
});
@@ -200,7 +200,7 @@ Deno.test({
assertThrows(
() => appendFileSync(tempFile, "hello world", { flag: "ax" }),
Deno.errors.AlreadyExists,
- ""
+ "",
);
assertEquals(Deno.resources(), openResourcesBeforeAppend);
Deno.removeSync(tempFile);