Modify nvm_version_path to use nvm_version_greater.

This commit is contained in:
Jordan Harband
2014-08-20 00:18:29 -07:00
parent 8fe677a644
commit 0a695c5d2a
2 changed files with 5 additions and 1 deletions

View File

@@ -6,4 +6,6 @@ die () { echo $@ ; exit 1; }
[ "$(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'
[ "$(nvm_version_path v0.11.0)" = "$NVM_DIR/v0.11.0" ] || die 'old version has the wrong path'
[ "$(nvm_version_path v0.12.0)" = "$NVM_DIR/versions/v0.12.0" ] || die 'new version has the wrong path'