Skip to content
Myr

Making sure this test passes whether a system node is installed or not.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jordan Harband · committed by Jordan Harband · parent a1a8e5a · Browse files · 1 file+6 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−1 removed

  • tests:+6 added−1 removed

1 file+6 added−1 removed

modified:test/fast/Unit tests/nvm_ls_current+6 added-1 removed
8 unmodified lines
9. ../../../nvm.sh1011return_zero () { return 0; }1213[ "$(nvm deactivate > /dev/null 2>&1 ; nvm_ls_current)" = "system" ] || die 'when deactivated, did not return "system"'13if nvm_has_system_node || nvm_has_system_iojs; then14 EXPECTED_SYSTEM_NODE="system"15else16 EXPECTED_SYSTEM_NODE="none"17fi18[ "_$(nvm deactivate > /dev/null 2>&1 ; nvm_ls_current)" = "_$EXPECTED_SYSTEM_NODE" ] || die "when deactivated, did not return $EXPECTED_SYSTEM_NODE"1920rm -rf "$TEST_DIR"21mkdir "$TEST_DIR"22ln -s "$(command which which)" "$TEST_DIR/which"
15 unmodified lines