nvm/test/fast/Running "nvm current" shoul...

12 lines
229 B
Plaintext
Raw Normal View History

2013-10-10 12:58:51 +08:00
#!/bin/sh
set -ex
die () { echo "$@" ; exit 1; }
2013-12-17 14:28:31 +08:00
\. ../../nvm.sh
nvm deactivate 2>&1
[ "$(nvm current)" = "system" ] || [ "$(nvm current)" = "none" ] || die '"nvm current" did not report "system" or "none" when deactivated'