summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/089_run_allow_list.ts
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2022-05-18 22:00:11 +0200
committerGitHub <noreply@github.com>2022-05-18 22:00:11 +0200
commit4e1ca1d1787f25ab9f0a72ccf9d8028f70b3a7ed (patch)
tree2d0062ec1dd864c7ed98301119ac5f1c133f844a /cli/tests/testdata/089_run_allow_list.ts
parent5ad8919d642b646caa3328930dd1a3f290bc587e (diff)
refactor: use spawn API across codebase (#14414)
Diffstat (limited to 'cli/tests/testdata/089_run_allow_list.ts')
-rw-r--r--cli/tests/testdata/089_run_allow_list.ts11
1 files changed, 5 insertions, 6 deletions
diff --git a/cli/tests/testdata/089_run_allow_list.ts b/cli/tests/testdata/089_run_allow_list.ts
index defb3196f..0eb79dcc2 100644
--- a/cli/tests/testdata/089_run_allow_list.ts
+++ b/cli/tests/testdata/089_run_allow_list.ts
@@ -1,13 +1,12 @@
try {
- Deno.run({
- cmd: ["ls"],
- });
+ await Deno.spawn("ls");
} catch (e) {
console.log(e);
}
-const proc = Deno.run({
- cmd: ["curl", "--help"],
+const { status } = await Deno.spawn("curl", {
+ args: ["--help"],
stdout: "null",
+ stderr: "inherit",
});
-console.log((await proc.status()).success);
+console.log(status.success);