Skip to content

Commit

Permalink
Added test for env_var
Browse files Browse the repository at this point in the history
  • Loading branch information
prsabahrami committed Sep 10, 2024
1 parent 4a42c85 commit 8ec5549
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crates/deno_task_shell/src/shell/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ async fn commands() {
.run()
.await;

TestBuilder::new()
.command("deno eval 'console.log(1)'")
.env_var("PATH", "")
.assert_stderr("deno: command not found\n")
.assert_exit_code(127)
.run()
.await;

TestBuilder::new().command("unset").run().await;
}

Expand Down

0 comments on commit 8ec5549

Please sign in to comment.