mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-09-08 12:07:47 +00:00
[Fix] nvm_normalize_lts
: error when an LTS name is not lowercase
Fixes #3417
This commit is contained in:
@@ -16,6 +16,9 @@ ACTUAL="$(nvm_normalize_lts "lts/*")"
|
||||
EXPECTED='lts/*'
|
||||
[ "${ACTUAL}" = "${EXPECTED}" ] || die "expected >${EXPECTED}<, got >${ACTUAL}<"
|
||||
|
||||
if ACTUAL="$(nvm_normalize_lts lts/ARGON)"; then
|
||||
die "expected failure, got >${ACTUAL}<"
|
||||
fi
|
||||
|
||||
MOCKS_DIR="../Unit tests/mocks"
|
||||
STAR="$(cat "$MOCKS_DIR/lts-star.txt")"
|
||||
|
Reference in New Issue
Block a user