diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-04-25 00:45:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-25 00:45:55 +0200 |
commit | 4a8d25646aa58e3e59d622e69c41822b40415c46 (patch) | |
tree | e228581912bfc0a4bdb56e3caec2ca3a1c1b9087 /std/mime/multipart_test.ts | |
parent | 0cb1bb98cc2de8dfe51b7adbe992666936146c90 (diff) |
BREAKING CHANGE: remove Deno.OpenMode (#4884)
This commit removes Deno.OpenMode along with overloaded variants
of Deno.open() and Deno.openSync() that used OpenMode.
Diffstat (limited to 'std/mime/multipart_test.ts')
-rw-r--r-- | std/mime/multipart_test.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/std/mime/multipart_test.ts b/std/mime/multipart_test.ts index aa3b7524e..c0cf012ec 100644 --- a/std/mime/multipart_test.ts +++ b/std/mime/multipart_test.ts @@ -93,7 +93,9 @@ test(async function multipartMultipartWriter(): Promise<void> { const mw = new MultipartWriter(buf); await mw.writeField("foo", "foo"); await mw.writeField("bar", "bar"); - const f = await open(path.resolve("./mime/testdata/sample.txt"), "r"); + const f = await open(path.resolve("./mime/testdata/sample.txt"), { + read: true, + }); await mw.writeFile("file", "sample.txt", f); await mw.close(); f.close(); |