From b8a5c29bf8e04bb6210080a05ce34e9a8d1d1496 Mon Sep 17 00:00:00 2001 From: Akshat Agarwal Date: Sun, 22 Mar 2020 03:14:18 +0530 Subject: BREAKING CHANGE Rename Deno.run's args to cmd (#4444) This is to avoid confusion with Deno.args which does not include the executable to be run. --- std/fs/empty_dir_test.ts | 2 +- std/fs/exists_test.ts | 2 +- std/fs/expand_glob_test.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'std/fs') diff --git a/std/fs/empty_dir_test.ts b/std/fs/empty_dir_test.ts index 553d63001..7015516ab 100644 --- a/std/fs/empty_dir_test.ts +++ b/std/fs/empty_dir_test.ts @@ -221,7 +221,7 @@ for (const s of scenes) { const p = Deno.run({ stdout: "piped", cwd: testdataDir, - args: args + cmd: args }); assert(p.stdout); diff --git a/std/fs/exists_test.ts b/std/fs/exists_test.ts index 4202f2734..1f296538c 100644 --- a/std/fs/exists_test.ts +++ b/std/fs/exists_test.ts @@ -124,7 +124,7 @@ for (const s of scenes) { const p = Deno.run({ stdout: "piped", cwd: testdataDir, - args: args + cmd: args }); const output = await p.output(); diff --git a/std/fs/expand_glob_test.ts b/std/fs/expand_glob_test.ts index 6bdb77266..adc94c1e9 100644 --- a/std/fs/expand_glob_test.ts +++ b/std/fs/expand_glob_test.ts @@ -120,7 +120,7 @@ Deno.test(async function expandGlobIncludeDirs(): Promise { Deno.test(async function expandGlobPermError(): Promise { const exampleUrl = new URL("testdata/expand_wildcard.js", import.meta.url); const p = run({ - args: [execPath(), exampleUrl.toString()], + cmd: [execPath(), exampleUrl.toString()], stdin: "null", stdout: "piped", stderr: "piped" -- cgit v1.2.3