summaryrefslogtreecommitdiff
path: root/cli/js/tests/process_test.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-04-25 00:45:55 +0200
committerGitHub <noreply@github.com>2020-04-25 00:45:55 +0200
commit4a8d25646aa58e3e59d622e69c41822b40415c46 (patch)
treee228581912bfc0a4bdb56e3caec2ca3a1c1b9087 /cli/js/tests/process_test.ts
parent0cb1bb98cc2de8dfe51b7adbe992666936146c90 (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 'cli/js/tests/process_test.ts')
-rw-r--r--cli/js/tests/process_test.ts7
1 files changed, 5 insertions, 2 deletions
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<void> {
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();"],