Added test for nvm unload

master
Koen Punt 2014-03-16 18:16:46 +01:00
parent 744507b83e
commit 703acb0514
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
#!/bin/sh
fail () { echo $@ ; exit 1; }
. ../../nvm.sh
type nvm > /dev/null 2>&1 || fail "NVM not loaded"
nvm unload
type nvm > /dev/null 2>&1 && fail "NVM not unloaded" || exit 0