summaryrefslogtreecommitdiff
path: root/std/examples/tests
diff options
context:
space:
mode:
Diffstat (limited to 'std/examples/tests')
-rw-r--r--std/examples/tests/cat_test.ts2
-rw-r--r--std/examples/tests/catj_test.ts2
-rw-r--r--std/examples/tests/colors_test.ts2
-rw-r--r--std/examples/tests/curl_test.ts2
-rw-r--r--std/examples/tests/echo_server_test.ts2
-rw-r--r--std/examples/tests/welcome_test.ts2
-rw-r--r--std/examples/tests/xeval_test.ts4
7 files changed, 8 insertions, 8 deletions
diff --git a/std/examples/tests/cat_test.ts b/std/examples/tests/cat_test.ts
index 34b60bc5d..0f17b798d 100644
--- a/std/examples/tests/cat_test.ts
+++ b/std/examples/tests/cat_test.ts
@@ -4,7 +4,7 @@ import { assertStrictEq } from "../../testing/asserts.ts";
Deno.test("[examples/cat] print multiple files", async () => {
const decoder = new TextDecoder();
const process = Deno.run({
- args: [
+ cmd: [
Deno.execPath(),
"--allow-read",
"cat.ts",
diff --git a/std/examples/tests/catj_test.ts b/std/examples/tests/catj_test.ts
index 2d667dacc..3f246a65f 100644
--- a/std/examples/tests/catj_test.ts
+++ b/std/examples/tests/catj_test.ts
@@ -77,7 +77,7 @@ Deno.test("[examples/catj] read from stdin", async () => {
function catj(...files: string[]): Deno.Process {
return Deno.run({
- args: [Deno.execPath(), "--allow-read", "catj.ts", ...files],
+ cmd: [Deno.execPath(), "--allow-read", "catj.ts", ...files],
cwd: "examples",
stdin: "piped",
stdout: "piped",
diff --git a/std/examples/tests/colors_test.ts b/std/examples/tests/colors_test.ts
index e01e4d558..7c01cd8d6 100644
--- a/std/examples/tests/colors_test.ts
+++ b/std/examples/tests/colors_test.ts
@@ -4,7 +4,7 @@ import { assertStrictEq } from "../../testing/asserts.ts";
Deno.test("[examples/colors] print a colored text", async () => {
const decoder = new TextDecoder();
const process = Deno.run({
- args: [Deno.execPath(), "colors.ts"],
+ cmd: [Deno.execPath(), "colors.ts"],
cwd: "examples",
stdout: "piped"
});
diff --git a/std/examples/tests/curl_test.ts b/std/examples/tests/curl_test.ts
index b23e73210..a36da83ba 100644
--- a/std/examples/tests/curl_test.ts
+++ b/std/examples/tests/curl_test.ts
@@ -19,7 +19,7 @@ Deno.test({
const decoder = new TextDecoder();
const process = Deno.run({
- args: [
+ cmd: [
Deno.execPath(),
"--allow-net",
"curl.ts",
diff --git a/std/examples/tests/echo_server_test.ts b/std/examples/tests/echo_server_test.ts
index 3c1893342..164f65357 100644
--- a/std/examples/tests/echo_server_test.ts
+++ b/std/examples/tests/echo_server_test.ts
@@ -8,7 +8,7 @@ Deno.test("[examples/echo_server]", async () => {
const encoder = new TextEncoder();
const decoder = new TextDecoder();
const process = Deno.run({
- args: [Deno.execPath(), "--allow-net", "echo_server.ts", `${port}`],
+ cmd: [Deno.execPath(), "--allow-net", "echo_server.ts", `${port}`],
cwd: "examples",
stdout: "piped"
});
diff --git a/std/examples/tests/welcome_test.ts b/std/examples/tests/welcome_test.ts
index 304a57868..60c55dc0b 100644
--- a/std/examples/tests/welcome_test.ts
+++ b/std/examples/tests/welcome_test.ts
@@ -4,7 +4,7 @@ import { assertStrictEq } from "../../testing/asserts.ts";
Deno.test("[examples/welcome] print a welcome message", async () => {
const decoder = new TextDecoder();
const process = Deno.run({
- args: [Deno.execPath(), "welcome.ts"],
+ cmd: [Deno.execPath(), "welcome.ts"],
cwd: "examples",
stdout: "piped"
});
diff --git a/std/examples/tests/xeval_test.ts b/std/examples/tests/xeval_test.ts
index db11c215c..92e9e1bfe 100644
--- a/std/examples/tests/xeval_test.ts
+++ b/std/examples/tests/xeval_test.ts
@@ -29,7 +29,7 @@ Deno.test({
name: "xevalCliReplvar",
fn: async function(): Promise<void> {
const p = run({
- args: [execPath(), xevalPath, "--replvar=abc", "console.log(abc)"],
+ cmd: [execPath(), xevalPath, "--replvar=abc", "console.log(abc)"],
stdin: "piped",
stdout: "piped",
stderr: "null"
@@ -45,7 +45,7 @@ Deno.test({
Deno.test(async function xevalCliSyntaxError(): Promise<void> {
const p = run({
- args: [execPath(), xevalPath, "("],
+ cmd: [execPath(), xevalPath, "("],
stdin: "null",
stdout: "piped",
stderr: "piped"