Skip to content

Commit

Permalink
test(fish): Improve test isolation
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperupcall committed Jan 19, 2024
1 parent 5327697 commit 314eaee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/asdf_fish.bats
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ cleaned_path() {
}

@test "exports ASDF_DIR" {
run fish -c "
run fish --no-config -c "
set -e asdf
set -e ASDF_DIR
set -e ASDF_DATA_DIR
Expand All @@ -30,7 +30,7 @@ cleaned_path() {
}

@test "adds asdf dirs to PATH" {
run fish -c "
run fish --no-config -c "
set -e asdf
set -e ASDF_DIR
set -e ASDF_DATA_DIR
Expand All @@ -46,7 +46,7 @@ cleaned_path() {
}

@test "does not add paths to PATH more than once" {
run fish -c "
run fish --no-config -c "
set -e asdf
set -e ASDF_DIR
set -e ASDF_DATA_DIR
Expand All @@ -63,7 +63,7 @@ cleaned_path() {
}

@test "defines the asdf function" {
run fish -c "
run fish --no-config -c "
set -e asdf
set -e ASDF_DIR
set PATH $(cleaned_path)
Expand All @@ -76,7 +76,7 @@ cleaned_path() {
}

@test "function calls asdf command" {
run fish -c "
run fish --no-config -c "
set -e asdf
set -x ASDF_DIR $(pwd) # checkstyle-ignore
set PATH $(cleaned_path)
Expand Down

0 comments on commit 314eaee

Please sign in to comment.