nvm/test/fast/Unit tests/nvm_version_path

10 lines
273 B
Plaintext
Raw Normal View History

2014-08-19 15:55:54 +08:00
#!/bin/sh
die () { echo $@ ; exit 1; }
. ../../../nvm.sh
[ "$(nvm_version_path foo)" = "$NVM_DIR/foo" ] || die '"nvm_version_path foo" did not return correct location'
[ "$(nvm_version_path 2>&1)" = "version is required" ] || die '"nvm_version_path" did not error out'
2014-08-19 15:55:54 +08:00