Skip to content

Commit

Permalink
updated error message test
Browse files Browse the repository at this point in the history
  • Loading branch information
r4reetik committed Oct 5, 2024
1 parent 68fe9f1 commit 70afc73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ nvm deactivate >/dev/null 2>&1 || die 'deactivate failed'
# Attempt to use 'lts' without '--' and capture the error message
ERROR_OUTPUT=$(nvm use lts 2>&1) || true

EXPECTED_ERROR="You need to run \`nvm install --lts\` to install and \`nvm use --lts\` to use it."
EXPECTED_ERROR="`lts` is not an alias - you may need to run \`nvm install --lts\` to install and \`nvm use --lts\` to use it."

# Check if the error message matches the expected output
echo "$ERROR_OUTPUT" | grep -q "$EXPECTED_ERROR" \
Expand Down

0 comments on commit 70afc73

Please sign in to comment.