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.
14 lines
475 B
Plaintext
14 lines
475 B
Plaintext
9 years ago
|
#!/bin/sh
|
||
|
|
||
|
die () { echo $@ ; exit 1; }
|
||
|
|
||
|
. ../../../nvm.sh
|
||
|
|
||
|
EXPECTED_OUTPUT="nvm_ensure_default_set: a version is required"
|
||
|
OUTPUT="$(nvm_ensure_default_set 2>&1 >/dev/null)"
|
||
|
EXIT_CODE="$?"
|
||
|
[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "'nvm_ensure_default_set' did not output "$EXPECTED_OUTPUT", got "$OUTPUT""
|
||
|
[ "_$EXIT_CODE" = "_1" ] || die "'nvm_ensure_default_set' did not exit with 1, got "$EXIT_CODE""
|
||
|
|
||
|
# see test/fast/Aliases for remaining nvm_ensure_default_set tests
|