Skip to content

Commit

Permalink
Unbreak the Nix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tesujimath committed Dec 31, 2024
1 parent c97ade4 commit 97c28b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nix-tests.bats
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
# simple tests for the Nix packaging

@test "simple" {
actual=$(echo 'export SOME_VARIABLE=some_value' | ./bash-env-json | jq -r '.env.SOME_VARIABLE')
actual=$(echo 'export SOME_VARIABLE=some_value' | bash-env-json | jq -r '.env.SOME_VARIABLE')
expected='some_value'
test "$actual" == "$expected"
}

@test "path" {
actual=$(echo 'export PATH=/oops' | ./bash-env-json | jq -r '.env.PATH')
actual=$(echo 'export PATH=/oops' | bash-env-json | jq -r '.env.PATH')
expected='/oops'
test "$actual" == "$expected"
}

0 comments on commit 97c28b1

Please sign in to comment.