diff options
author | Akshat Agarwal <humancalico@disroot.org> | 2020-03-22 03:14:18 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-21 17:44:18 -0400 |
commit | b8a5c29bf8e04bb6210080a05ce34e9a8d1d1496 (patch) | |
tree | 4e5788c62165789b12c77534923db9dd2d2c57a3 /std/http/file_server_test.ts | |
parent | b191c919f3bde46fe7e0112a33f060715b50b9a4 (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/http/file_server_test.ts')
-rw-r--r-- | std/http/file_server_test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/std/http/file_server_test.ts b/std/http/file_server_test.ts index b7cd8a7e1..d7f939dad 100644 --- a/std/http/file_server_test.ts +++ b/std/http/file_server_test.ts @@ -9,7 +9,7 @@ let fileServer: Deno.Process; const port = randomPort(); async function startFileServer(): Promise<void> { fileServer = Deno.run({ - args: [ + cmd: [ Deno.execPath(), "run", "--allow-read", @@ -109,7 +109,7 @@ test(async function serveWithUnorthodoxFilename(): Promise<void> { test(async function servePermissionDenied(): Promise<void> { const _port = randomPort(); const deniedServer = Deno.run({ - args: [ + cmd: [ Deno.execPath(), "run", "--allow-net", @@ -143,7 +143,7 @@ test(async function servePermissionDenied(): Promise<void> { test(async function printHelp(): Promise<void> { const helpProcess = Deno.run({ - args: [Deno.execPath(), "run", "http/file_server.ts", "--help"], + cmd: [Deno.execPath(), "run", "http/file_server.ts", "--help"], stdout: "piped" }); assert(helpProcess.stdout != null); |