From 4a8d25646aa58e3e59d622e69c41822b40415c46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sat, 25 Apr 2020 00:45:55 +0200 Subject: BREAKING CHANGE: remove Deno.OpenMode (#4884) This commit removes Deno.OpenMode along with overloaded variants of Deno.open() and Deno.openSync() that used OpenMode. --- cli/js/tests/process_test.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'cli/js/tests/process_test.ts') diff --git a/cli/js/tests/process_test.ts b/cli/js/tests/process_test.ts index 47efd86d5..1bcdf26da 100644 --- a/cli/js/tests/process_test.ts +++ b/cli/js/tests/process_test.ts @@ -229,7 +229,10 @@ unitTest( async function runRedirectStdoutStderr(): Promise { const tempDir = await makeTempDir(); const fileName = tempDir + "/redirected_stdio.txt"; - const file = await open(fileName, "w"); + const file = await open(fileName, { + create: true, + write: true, + }); const p = run({ cmd: [ @@ -261,7 +264,7 @@ unitTest( const fileName = tempDir + "/redirected_stdio.txt"; const encoder = new TextEncoder(); await writeFile(fileName, encoder.encode("hello")); - const file = await open(fileName, "r"); + const file = await open(fileName); const p = run({ cmd: ["python", "-c", "import sys; assert 'hello' == sys.stdin.read();"], -- cgit v1.2.3