zsh-nvm/tests/loading/Check zsh-nvm wraps nvm

12 lines
290 B
Plaintext
Raw Normal View History

#!/bin/sh
2016-10-19 21:53:53 +08:00
source ../common.sh
# Load zsh-nvm
load_zsh_nvm
# Check unwrapped nvm doesn't have revert command
_zsh_nvm_nvm revert && die "Unwrapped nvm already has revert command"
# Check nvm is wrapped with our revert command
nvm revert || die "nvm isn't wrapped with our revert command"