mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-10-31 01:45:50 +08:00
[Tests] update to latest npm in this test
This commit is contained in:
@@ -6,6 +6,8 @@ die () { echo "$@" ; exit 1; }
|
||||
|
||||
nvm use 0.10.28 > /dev/null
|
||||
|
||||
nvm install-latest-npm || die 'nvm install-latest-npm failed'
|
||||
|
||||
EXPECTED_MSG="Can not reinstall packages from the current version of node."
|
||||
ACTUAL_MSG="$(nvm reinstall-packages 0.10.28 2>&1 > /dev/null)"
|
||||
[ "~$ACTUAL_MSG" = "~$EXPECTED_MSG" ] || die "'nvm use 0.10.28 && nvm reinstall-packages 0.10.28' did not fail with the right message: '$ACTUAL_MESSAGE'"
|
||||
|
||||
Reference in New Issue
Block a user