Browse Source

Test NVM_NO_USE option

pull/10/head
Luke Childs 8 years ago
parent
commit
cd48b14dc6
  1. 20
      tests/options/NVM_NO_USE

20
tests/options/NVM_NO_USE

@ -0,0 +1,20 @@
#!/bin/sh
source ../common.sh
# Node.js version to install
node_version=v5.11.0
# Load zsh-nvm and install Node.js in subshell
(load_zsh_nvm && nvm install "$node_version" && [[ "$(node --version)" == "$node_version" ]]) || die "node wasn't installed"
# Check node isn't available
[[ "$(node --version)" != "$node_version" ]] || die "node shouldn't be available $(node --version)"
# Set NVM_NO_USE to true
export NVM_NO_USE=true
# Load zsh-nvm
load_zsh_nvm
# Check node still isn't available
[[ "$(node --version)" != "$node_version" ]] || die "node shouldn't be available $(node --version)"
Loading…
Cancel
Save