mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 14:21:50 +00:00
Added test for nvm unload
This commit is contained in:
parent
744507b83e
commit
703acb0514
11
test/fast/Running "nvm unload" should unset all function and variables.
Executable file
11
test/fast/Running "nvm unload" should unset all function and variables.
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user