From 703acb0514ae67fd914673018c5c594e155ad65f Mon Sep 17 00:00:00 2001 From: Koen Punt Date: Sun, 16 Mar 2014 18:16:46 +0100 Subject: [PATCH] Added test for nvm unload --- ...unload\" should unset all function and variables." | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 "test/fast/Running \"nvm unload\" should unset all function and variables." diff --git "a/test/fast/Running \"nvm unload\" should unset all function and variables." "b/test/fast/Running \"nvm unload\" should unset all function and variables." new file mode 100755 index 0000000..bbb4343 --- /dev/null +++ "b/test/fast/Running \"nvm unload\" should unset all function and variables." @@ -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 \ No newline at end of file