mirror of
https://github.com/lukechilds/zsh-nvm.git
synced 2025-01-30 09:47:14 +08:00
Improve node binary checks in tests
This commit is contained in:
parent
97fa6ebeab
commit
920520ec04
@ -23,4 +23,4 @@ load_zsh_nvm
|
|||||||
node --version || die "couldn't run lazy loader"
|
node --version || die "couldn't run lazy loader"
|
||||||
|
|
||||||
# Check node is a binary
|
# 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"
|
nvm use "$node_version"
|
||||||
|
|
||||||
# Check node is a binary
|
# 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