mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-10-29 16:35:51 +08:00
Updates tests for the new output messages
This commit is contained in:
@@ -5,5 +5,12 @@ die () { echo $@ ; exit 1; }
|
||||
|
||||
. ../../../nvm.sh
|
||||
|
||||
[ "$(nvm run 0.2 --version 2>&1)" = 'N/A: version "v0.2" is not yet installed' ] || die "\`nvm run\` with an uninstalled node version failed to error out correctly"
|
||||
[ "$(nvm run iojs-0.2 --version 2>&1)" = 'N/A: version "iojs-v0.2" is not yet installed' ] || die "\`nvm run\` with an uninstalled iojs version failed to error out correctly"
|
||||
EXPECTED_OUTPUT='N/A: version "v0.2" is not yet installed.
|
||||
|
||||
You need to run "nvm install 0.2" to install it before using it.'
|
||||
[ "_$(nvm run 0.2 --version 2>&1)" = "_$EXPECTED_OUTPUT" ] || die "\`nvm run\` with an uninstalled node version failed to error out correctly"
|
||||
|
||||
EXPECTED_OUTPUT='N/A: version "iojs-v0.2" is not yet installed.
|
||||
|
||||
You need to run "nvm install iojs-0.2" to install it before using it.'
|
||||
[ "_$(nvm run iojs-0.2 --version 2>&1)" = "_$EXPECTED_OUTPUT" ] || die "\`nvm run\` with an uninstalled iojs version failed to error out correctly"
|
||||
|
||||
Reference in New Issue
Block a user