summaryrefslogtreecommitdiff
path: root/std/node/_fs/_fs_appendFile_test.ts
diff options
context:
space:
mode:
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);