mirror of
https://github.com/lukechilds/zsh-nvm.git
synced 2025-01-30 09:47:14 +08:00
Check node can be loaded manually in NVM_NO_USE test
This commit is contained in:
parent
65869205ac
commit
97fa6ebeab
@ -18,3 +18,9 @@ load_zsh_nvm
|
||||
|
||||
# Check node still isn't available
|
||||
[[ "$(node --version)" != "$node_version" ]] || die "node shouldn't be available $(node --version)"
|
||||
|
||||
# Manually load node
|
||||
nvm use "$node_version"
|
||||
|
||||
# Check node is a binary
|
||||
[[ "$(command -v node)" != "node" ]] || die "node should now be a binary"
|
||||
|
Loading…
Reference in New Issue
Block a user