diff options
author | Benjamin Lupton <b@lupton.cc> | 2020-06-24 12:32:43 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-23 22:32:43 -0400 |
commit | 49c54c0805ab26410a62e0251fee3a28b98c0e13 (patch) | |
tree | b9fcb2713622f2739557f2caffd51d8bb454300b /std/node/_fs/_fs_appendFile_test.ts | |
parent | d16337cc9c59732fe81655482e08b72d844472e6 (diff) |
fix(std/node): fix readFile types, add encoding types (#6451)
Diffstat (limited to 'std/node/_fs/_fs_appendFile_test.ts')
-rw-r--r-- | std/node/_fs/_fs_appendFile_test.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/std/node/_fs/_fs_appendFile_test.ts b/std/node/_fs/_fs_appendFile_test.ts index 1286ff900..9c0ccb666 100644 --- a/std/node/_fs/_fs_appendFile_test.ts +++ b/std/node/_fs/_fs_appendFile_test.ts @@ -23,6 +23,7 @@ Deno.test({ fn() { assertThrows( () => { + // @ts-expect-error Type '"made-up-encoding"' is not assignable to type appendFile("some/path", "some data", "made-up-encoding", () => {}); }, Error, @@ -33,6 +34,7 @@ Deno.test({ appendFile( "some/path", "some data", + // @ts-expect-error Type '"made-up-encoding"' is not assignable to type { encoding: "made-up-encoding" }, () => {} ); @@ -41,6 +43,7 @@ Deno.test({ "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" @@ -48,6 +51,7 @@ Deno.test({ assertThrows( () => appendFileSync("some/path", "some data", { + // @ts-expect-error Type '"made-up-encoding"' is not assignable to type encoding: "made-up-encoding", }), Error, |