nvm/test/slow/nvm run/Running "nvm run" should pi...

13 lines
353 B
Plaintext
Raw Normal View History

#!/bin/sh
die () { echo "$@" ; exit 1; }
\. ../../../nvm.sh
echo "0.10.7" > .nvmrc
2014-05-04 15:39:32 +08:00
2014-05-04 14:29:21 +08:00
[ "$(nvm run --version | tail -1)" = "v0.10.7" ] || die "\`nvm run\` failed to run with the .nvmrc version"
2014-05-04 15:39:32 +08:00
[ "$(nvm run --version | head -1)" = "Found '$PWD/.nvmrc' with version <0.10.7>" ] || die "\`nvm run\` failed to print out the \"found in .nvmrc\" message"