Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkarns committed Feb 19, 2023
1 parent ba9f315 commit 90d5bb5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/versions.bats
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ OUT
run nodenv-versions
assert_success
assert_output - <<OUT
* system (set by ${NODENV_ROOT}/version)
* system
8.0.0
9.0.0
10.0.0
Expand Down Expand Up @@ -195,6 +195,7 @@ OUT
}

@test "recurses into lts subdirectory" {
stub_system_node
create_version "2.0.0"
mkdir "${NODENV_ROOT}/versions/lts"
create_version "lts/argon"
Expand All @@ -212,6 +213,7 @@ OUT
}

@test "does not recurse into non-lts subdirectories" {
stub_system_node
create_version "2.0.0"
mkdir "${NODENV_ROOT}/versions/other"
create_version "other/1.2.3"
Expand All @@ -226,6 +228,7 @@ OUT
}

@test "lists version named lts" {
stub_system_node
create_version "2.0.0"
create_version "lts"

Expand All @@ -240,6 +243,7 @@ OUT
}

@test "lists alias named lts" {
stub_system_node
create_version "2.0.0"
ln -s "2.0.0" "${NODENV_ROOT}/versions/lts"

Expand Down

0 comments on commit 90d5bb5

Please sign in to comment.