[Tests] update to latest npm in this test

This commit is contained in:
Jordan Harband
2018-02-08 22:53:41 -08:00
parent 6dd9ecb607
commit 71032cfaa1
2 changed files with 7 additions and 5 deletions

View File

@@ -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'"