From f9626734f1051929a270b13192e16f5f5dec710c Mon Sep 17 00:00:00 2001 From: David Sherret Date: Sun, 28 Jan 2024 11:49:04 -0500 Subject: [PATCH] Get rid of copilot generated noThrow() --- mod.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod.test.ts b/mod.test.ts index fcd4ecf..3a3aa55 100644 --- a/mod.test.ts +++ b/mod.test.ts @@ -1151,11 +1151,11 @@ Deno.test("subshells", async () => { } // exiting shouldn't exit the parent { - const result = await $`echo 1 && (echo 2 && exit 0 && echo 3) && echo 4`.noThrow().text(); + const result = await $`echo 1 && (echo 2 && exit 0 && echo 3) && echo 4`.text(); assertEquals(result, "1\n2\n4"); } { - const result = await $`echo 1 && (echo 2 && exit 1 && echo 3) || echo 4`.noThrow().text(); + const result = await $`echo 1 && (echo 2 && exit 1 && echo 3) || echo 4`.text(); assertEquals(result, "1\n2\n4"); } // shouldn't change the environment either