mirror of
https://github.com/lukechilds/zsh-nvm.git
synced 2025-02-27 10:25:31 +08:00
Improve node binary checks in tests
This commit is contained in:
parent
385f4afef9
commit
0618f5825a
@ -23,4 +23,4 @@ load_zsh_nvm
|
||||
node --version || die "couldn't run lazy loader"
|
||||
|
||||
# Check node is a binary
|
||||
[[ "$(command -v node)" != "node" ]] || die "node should now be a binary"
|
||||
[[ "$(command -v node)" == "$(nvm_version_path $node_version)/bin/node" ]] || die "node should now be a binary"
|
||||
|
@ -23,4 +23,4 @@ load_zsh_nvm
|
||||
nvm use "$node_version"
|
||||
|
||||
# Check node is a binary
|
||||
[[ "$(command -v node)" != "node" ]] || die "node should now be a binary"
|
||||
[[ "$(command -v node)" == "$(nvm_version_path $node_version)/bin/node" ]] || die "node should now be a binary"
|
||||
|
Loading…
Reference in New Issue
Block a user