summaryrefslogtreecommitdiff
path: root/std/fs
diff options
context:
space:
mode:
authorAkshat Agarwal <humancalico@disroot.org>2020-03-22 03:14:18 +0530
committerGitHub <noreply@github.com>2020-03-21 17:44:18 -0400
commitb8a5c29bf8e04bb6210080a05ce34e9a8d1d1496 (patch)
tree4e5788c62165789b12c77534923db9dd2d2c57a3 /std/fs
parentb191c919f3bde46fe7e0112a33f060715b50b9a4 (diff)
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.
Diffstat (limited to 'std/fs')
-rw-r--r--std/fs/empty_dir_test.ts2
-rw-r--r--std/fs/exists_test.ts2
-rw-r--r--std/fs/expand_glob_test.ts2
3 files changed, 3 insertions, 3 deletions
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<void> {
Deno.test(async function expandGlobPermError(): Promise<void> {
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"