summaryrefslogtreecommitdiff
path: root/cli/tests/unit/spawn_test.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-05-25 21:53:53 +0200
committerGitHub <noreply@github.com>2022-05-25 21:53:53 +0200
commit3aef7d1253045c9f1e7f2b607ed3b30d2c8d1ee4 (patch)
tree59ecf63a913b51f00c1a2bd63dc12eea03dc5caf /cli/tests/unit/spawn_test.ts
parent5e62ee31d76fcce46d88fea1078552682d082c89 (diff)
chore: upgrade test_util/std/ submodule (#14722)
Diffstat (limited to 'cli/tests/unit/spawn_test.ts')
-rw-r--r--cli/tests/unit/spawn_test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/tests/unit/spawn_test.ts b/cli/tests/unit/spawn_test.ts
index de47b8757..10bcc597f 100644
--- a/cli/tests/unit/spawn_test.ts
+++ b/cli/tests/unit/spawn_test.ts
@@ -381,8 +381,8 @@ Deno.test(
},
);
-Deno.test({ permissions: { run: true } }, async function spawnNotFound() {
- await assertRejects(
+Deno.test({ permissions: { run: true } }, function spawnNotFound() {
+ assertThrows(
() => Deno.spawn("this file hopefully doesn't exist"),
Deno.errors.NotFound,
);
@@ -695,8 +695,8 @@ Deno.test(
},
);
-Deno.test(async function spawnStdinPipedFails() {
- await assertRejects(
+Deno.test(function spawnStdinPipedFails() {
+ assertThrows(
() =>
Deno.spawn("id", {
stdin: "piped",