Skip to content

Commit

Permalink
Get rid of copilot generated noThrow()
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Jan 28, 2024
1 parent 310c190 commit f962673
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f962673

Please sign in to comment.