From ba7477f5bb75d752f1841db055445c0a2b86fd43 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Wed, 19 Oct 2016 14:53:53 +0100 Subject: [PATCH] Test zsh-nvm wraps nvm --- tests/loading/Check zsh-nvm wraps nvm | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 tests/loading/Check zsh-nvm wraps nvm diff --git a/tests/loading/Check zsh-nvm wraps nvm b/tests/loading/Check zsh-nvm wraps nvm new file mode 100755 index 0000000..d65a5c2 --- /dev/null +++ b/tests/loading/Check zsh-nvm wraps nvm @@ -0,0 +1,10 @@ +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"