You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dot-files/test/fast/Running "nvm current" shoul...

11 lines
218 B
Bash

#!/bin/sh
die () { echo $@ ; exit 1; }
. ../../nvm.sh
nvm deactivate 2>&1
[ "$(nvm current)" = "system" ] || [ "$(nvm current)" = "none" ] || die '"nvm current" did not report "system" or "none" when deactivated'