Improving failure messages on this test

master
Jordan Harband 2015-01-16 16:09:14 -06:00
parent eb8c3414dd
commit 8ae7b33632
1 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ die () { echo $@ ; exit 1; }
. ../../nvm.sh
nvm install 0.6.21
[ "$(node -v)" = "v0.6.21-pre" ] || die "v0.6.21-pre not installed with v0.6.21"
[ "$(nvm current)" = "v0.6.21" ] || die "v0.6.21-pre not reported as v0.6.21"
nvm install 0.6.21 || die 'v0.6.21 installation failed'
[ "$(node -v)" = "v0.6.21-pre" ] || die "v0.6.21-pre not installed with v0.6.21, got $(node -v)"
[ "$(nvm current)" = "v0.6.21" ] || die "v0.6.21-pre not reported as v0.6.21, got $(nvm current)"