Organizing nvm install tests better.

This commit is contained in:
Jordan Harband
2014-04-19 16:47:07 -07:00
parent c188c1b11a
commit 55a6f1f06e
3 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
#!/bin/sh
set -e
. ../../nvm.sh
# Remove the stuff we're clobbering.
[ -e ../../v0.10.7 ] && rm -R ../../v0.10.7
[ -e ../../v0.10.8 ] && rm -R ../../v0.10.8
# Install from binary
nvm install 0.10.7
nvm install 0.10.8
# Check
[ -d ../../v0.10.7 ]
[ -d ../../v0.10.8 ]
# Use the first one
nvm use 0.10.7
# Use the latest one
nvm use 0.10
node --version | grep v0.10.8