Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix coding style #1747

Merged
merged 3 commits into from
Feb 25, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ npm-debug.log

.DS_Store
current

1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
* eol=lf

1 change: 0 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ For pull requests:
Even if you don't have all of these items covered, please still feel free to submit a PR/issue! Someone else may be inspired and volunteer to complete it for you.

Thanks again!

1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,3 @@ RUN bash -c 'source $HOME/.nvm/nvm.sh && \
WORKDIR /home/nvm/.nvm

ENTRYPOINT /bin/bash

1 change: 0 additions & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ If you're running a system without prepackaged binary available, which means you
- [bass](https://github.com/edc/bass) allows you to use utilities written for Bash in fish shell
- [fast-nvm-fish](https://github.com/brigand/fast-nvm-fish) only works with version numbers (not aliases) but doesn't significantly slow your shell startup
- [plugin-nvm](https://github.com/derekstavis/plugin-nvm) plugin for [Oh My Fish](https://github.com/oh-my-fish/oh-my-fish), which makes nvm and its completions available in fish shell
- [fnm](https://github.com/fisherman/fnm) - [fisherman](https://github.com/fisherman/fisherman)-based version manager for fish
- [fnm](https://github.com/fisherman/fnm) - [fisherman](https://github.com/fisherman/fisherman)-based version manager for fish

**Note:** We still have some problems with FreeBSD, because there is no official pre-built binary for FreeBSD, and building from source may need [patches](https://www.freshports.org/www/node/files/patch-deps_v8_src_base_platform_platform-posix.cc); see the issue ticket:
- [[#900] [Bug] nodejs on FreeBSD may need to be patched ](https://github.com/creationix/nvm/issues/900)
Expand Down
1 change: 0 additions & 1 deletion bash_completion
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,3 @@ if [[ -n ${ZSH_VERSION-} ]]; then
fi

complete -o default -F __nvm nvm

Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ EXPECTED_OUTPUT="Aliases in subdirectories are not supported."

EXIT_CODE="$(nvm alias /bar baz >/dev/null 2>&1 ; echo $?)"
[ "$EXIT_CODE" = "1" ] || die "trying to create an alias starting with a slash should fail with code 1, got '$EXIT_CODE'"

Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ EXPECTED_OUTPUT="Aliases in subdirectories are not supported."

EXIT_CODE="$(nvm unalias /bar >/dev/null 2>&1 ; echo $?)"
[ "$EXIT_CODE" = "1" ] || die "trying to remove an alias starting with a slash should fail with code 1, got '$EXIT_CODE'"

Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ EXPECTED_IOJS="$(nvm_print_implicit_alias local iojs)"
IOJS_VERSION="$(nvm_version "$EXPECTED_IOJS")"
echo "$NVM_ALIAS_OUTPUT" | \grep -F "iojs -> $EXPECTED_IOJS (-> $IOJS_VERSION) (default)" \
|| die "nvm alias did not contain the default local iojs version; got '$NVM_ALIAS_OUTPUT'"

1 change: 0 additions & 1 deletion test/fast/Aliases/circular/setup
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ echo three > ../../../../alias/two
echo one > ../../../../alias/three

echo two > ../../../../alias/four

1 change: 0 additions & 1 deletion test/fast/Aliases/circular/teardown
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ rm -f ../../../../alias/two
rm -f ../../../../alias/three

rm -f ../../../../alias/four

1 change: 0 additions & 1 deletion test/fast/Listing versions/teardown
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ rmdir ../../../versions >/dev/null 2>&1
unalias nvm_has_system_node >/dev/null 2>&1
rm -f ../../../alias/stable >/dev/null 2>&1
rm -f ../../../alias/unstable >/dev/null 2>&1

1 change: 0 additions & 1 deletion test/fast/Unit tests/nvm_alias
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@ OUTPUT="$(nvm_alias test)"
[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "'nvm_alias test' produced wrong output; got $OUTPUT"

cleanup

1 change: 0 additions & 1 deletion test/fast/Unit tests/nvm_alias_path
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ die () { echo "$@" ; exit 1; }
\. ../../../nvm.sh

[ "_$(nvm_alias_path)" = "_$NVM_DIR/alias" ] || die "nvm_alias_path did not requrn correct location"

1 change: 0 additions & 1 deletion test/fast/Unit tests/nvm_find_up
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ TEST_DIR="$PWD"
[ "~$(PWD=$TEST_DIR/tmp_nvm_find_up/a/b/c/d nvm_find_up 'test')" = "~$TEST_DIR/tmp_nvm_find_up/a/b/c" ] || die "failed to find 1 level up from current dir"

cleanup

1 change: 0 additions & 1 deletion test/fast/Unit tests/nvm_format_version
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ INPUT="1.2.3.4.5"
OUTPUT="$(nvm_format_version "$INPUT")"
EXPECTED_OUTPUT="v1.2.3"
[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm_format_version $INPUT did not return $EXPECTED_OUTPUT; got $OUTPUT"

1 change: 0 additions & 1 deletion test/fast/Unit tests/nvm_has
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ nvm_has cat && type cat > /dev/null || die 'nvm_has locates "cat" properly'
[ "~$(nvm_has foobarbaz 2>&1)" = "~" ] || die "nvm_has does not suppress error output"

! nvm_has foobarbaz && ! type foobarbaz >/dev/null 2>&1 || die "nvm_has does not return a nonzero exit code when not found"

1 change: 0 additions & 1 deletion test/fast/Unit tests/nvm_ls_remote_iojs
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,3 @@ iojs-v1.0.4"
[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "nvm_ls_remote_iojs 1.0 did not output 1.0.x versions; got $OUTPUT"

cleanup

1 change: 0 additions & 1 deletion test/fast/Unit tests/nvm_num_version_groups
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ die () { echo "$@" ; exit 1; }
[ "~$(nvm_num_version_groups 1.2.3)" = "~3" ] || die "1.2.3 should give 3"
[ "~$(nvm_num_version_groups v1.2.3)" = "~3" ] || die "v1.2.3 should give 3"
[ "~$(nvm_num_version_groups v1.2.3.)" = "~3" ] || die "v1.2.3. should give 3"

1 change: 0 additions & 1 deletion test/fast/Unit tests/nvm_print_implicit_alias errors
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ EXPECTED_SECOND_MSG="Only implicit aliases 'stable', 'unstable', 'iojs', and 'no
SECOND_EXIT_CODE="$(nvm_print_implicit_alias local > /dev/null 2>&1 ; echo $?)"
[ "_$SECOND_EXIT_CODE" = "_2" ] \
|| die "nvm_print_implicit_alias without stable|unstable|iojs|node had wrong exit code: expected 2, got $SECOND_EXIT_CODE"

1 change: 0 additions & 1 deletion test/fast/Unit tests/nvm_remote_versions
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,3 @@ EXIT_CODE="$(nvm_remote_versions iojs >/dev/null 2>&1 ; echo $?)"
[ "_$EXIT_CODE" = "_0" ] || die "nvm_remote_versions iojs did not exit with 0, got $EXIT_CODE"

cleanup

1 change: 0 additions & 1 deletion test/fast/Unit tests/nvm_tree_contains_path
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,3 @@ nvm_tree_contains_path tmp2 tmp2/node || die '"tmp2" should contain "tmp2/node"'
nvm_tree_contains_path tmp2 tmp/node && die '"tmp2" should not contain "tmp/node"'

cleanup

1 change: 0 additions & 1 deletion test/fast/Unit tests/nvm_validate_implicit_alias
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ nvm_validate_implicit_alias stable || die "nvm_validate_implicit_alias stable di
nvm_validate_implicit_alias unstable || die "nvm_validate_implicit_alias unstable did not exit 0"
nvm_validate_implicit_alias node || die "nvm_validate_implicit_alias node did not exit 0"
nvm_validate_implicit_alias iojs || die "nvm_validate_implicit_alias iojs did not exit 0"

1 change: 0 additions & 1 deletion test/fast/Unit tests/nvm_version_dir
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ die () { echo "$@" ; exit 1; }
[ "$(nvm_version_dir new)" = "$(nvm_version_dir)" ] || die '"nvm_version_dir new" did not return new dir path'
[ "$(nvm_version_dir old)" = "$NVM_DIR" ] || die '"nvm_version_dir old" did not return old dir path'
[ "$(nvm_version_dir foo 2>&1)" = "unknown version dir" ] || die '"nvm_version_dir foo" did not error out'

1 change: 0 additions & 1 deletion test/fast/Unit tests/nvm_version_greater
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ fi
if nvm_version_greater 0.10.0 0.10.0; then
die '"nvm_version_greater" returned false for the same two versions'
fi

1 change: 0 additions & 1 deletion test/fast/Unit tests/nvm_version_path
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ EXPECTED_OUTPUT="$NVM_DIR/foo"
[ "$(nvm_version_path v0.11.0)" = "$NVM_DIR/v0.11.0" ] || die 'old version has the wrong path'
[ "$(nvm_version_path v0.12.0)" = "$NVM_DIR/versions/node/v0.12.0" ] || die 'new version has the wrong path'
[ "$(nvm_version_path iojs-v0.12.0)" = "$NVM_DIR/versions/io.js/v0.12.0" ] || die 'iojs version has the wrong path'

1 change: 0 additions & 1 deletion test/install_script/nvm_do_install
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ NVM_ENV=testing \. ../../install.sh

#nvm_do_install is available
type nvm_do_install > /dev/null 2>&1 || die 'nvm_do_install is not available'

3 changes: 1 addition & 2 deletions test/install_script/nvm_install_dir
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ HOME="__home__"


# NVM_DIR is set
NVM_DIR="some_dir"
NVM_DIR="some_dir"
install_dir=$(nvm_install_dir)
[ "_$install_dir" = "_$NVM_DIR" ] || die "nvm_install_dir should use \$NVM_DIR if it exists. Current output: $install_dir"

Expand All @@ -22,4 +22,3 @@ install_dir=$(nvm_install_dir)
[ "_$install_dir" = "_$HOME/.nvm" ] || die "nvm_install_dir should default to \$HOME/.nvm. Current output: $install_dir"

cleanup

1 change: 0 additions & 1 deletion test/install_script/nvm_install_with_aliased_dot
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ nvm_do_install > /dev/null 2>&1
command -v nvm || die 'nvm could not be loaded'

cleanup

1 change: 0 additions & 1 deletion test/install_script/nvm_reset
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,3 @@ nvm_reset || die 'nvm_reset failed'
! safe_type nvm_detect_profile || die 'nvm_detect_profile is still available'

cleanup

5 changes: 2 additions & 3 deletions test/install_script/nvm_source
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ die () { echo "$@" ; cleanup ; exit 1; }
NVM_ENV=testing \. ../../install.sh

# nvm_source with no parameter returns the git endpoint
echo $(nvm_source) | grep "nvm.git$" > /dev/null || die "nvm_source without arguments should return the location of the git repo"
echo $(nvm_source) | grep "nvm.git$" > /dev/null || die "nvm_source without arguments should return the location of the git repo"

# nvm_source with git parameter returns the location of the nvm repo
echo $(nvm_source "git") | grep "nvm.git$" > /dev/null || die "nvm_source without arguments should return the location of the git repo"
echo $(nvm_source "git") | grep "nvm.git$" > /dev/null || die "nvm_source without arguments should return the location of the git repo"

# nvm_source with script parameter returns the location of nvm.sh
echo $(nvm_source "script") | grep "nvm.sh$" > /dev/null || die "nvm_source \"script\" should return the location of nvm.sh"
Expand All @@ -37,4 +37,3 @@ out=$(nvm_source "anything")
[ "_$out" = "_my_location" ] || die "nvm_source script should have returned \$NVM_SOURCE. Got \"$out\""

cleanup

1 change: 0 additions & 1 deletion test/installation_iojs/setup_dir
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@
if [ -f ".nvmrc" ]; then
mv .nvmrc .nvmrc.bak
fi

1 change: 0 additions & 1 deletion test/installation_iojs/teardown_dir
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ fi
if [ -f ".nvmrc.bak" ]; then
mv .nvmrc.bak .nvmrc
fi

1 change: 0 additions & 1 deletion test/installation_node/install from source implicitly
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@ nvm install $NVM_TEST_VERSION || die "'nvm install -s $NVM_TEST_VERSION' failed"
# Check
[ -d ../../$NVM_TEST_VERSION ]
nvm run $NVM_TEST_VERSION --version | grep $NVM_TEST_VERSION || "'nvm run $NVM_TEST_VERSION --version | grep $NVM_TEST_VERSION' failed"

Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ nvm install -s $NVM_TEST_VERSION || die "'nvm install -s $NVM_TEST_VERSION' fail
node --version | grep $NVM_TEST_VERSION || "'node --version | grep $NVM_TEST_VERSION' failed"

# Check V8 snapshot isn't compiled
node -p "if(! process.config.variables.v8_use_snapshot) { console.log('no-snapshot'); }" | grep "no-snapshot" || "'node -p \"if(! process.config.variables.v8_use_snapshot) { console.log('no-snapshot'); }\" | grep \"no-snapshot\"' failed"
node -p "if(! process.config.variables.v8_use_snapshot) { console.log('no-snapshot'); }" | grep "no-snapshot" || "'node -p \"if(! process.config.variables.v8_use_snapshot) { console.log('no-snapshot'); }\" | grep \"no-snapshot\"' failed"
2 changes: 0 additions & 2 deletions test/installation_node/install hook
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,3 @@ ${USE_OUTPUT}
failed"

[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "expected >${EXPECTED_OUTPUT}<; got >${OUTPUT}<"


Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,3 @@ nvm install || die "'nvm install' failed"
[ -d ../../$NVM_TEST_VERSION ] || die "./$NVM_TEST_VERSION did not exist"
nvm run $NVM_TEST_VERSION --version | grep $NVM_TEST_VERSION \
|| "'nvm run $NVM_TEST_VERSION --version | grep $NVM_TEST_VERSION' failed"


Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,3 @@ nvm install -s || "'nvm install -s' failed"
[ -d ../../$NVM_TEST_VERSION ] || die "$NVM_TEST_VERSION did not exist"
nvm run $NVM_TEST_VERSION --version | grep $NVM_TEST_VERSION \
|| die "'nvm run $NVM_TEST_VERSION --version | grep $NVM_TEST_VERSION' failed"


1 change: 0 additions & 1 deletion test/installation_node/setup_dir
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@
if [ -f ".nvmrc" ]; then
mv .nvmrc .nvmrc.bak
fi

1 change: 0 additions & 1 deletion test/installation_node/teardown_dir
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ fi
if [ -f ".nvmrc.bak" ]; then
mv .nvmrc.bak .nvmrc
fi

1 change: 0 additions & 1 deletion test/slow/node 0.6.21 should install 0.6.21-pre
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ die () { echo "$@" ; exit 1; }
nvm install 0.6.21 || die 'v0.6.21 installation failed'
[ "_$(node -v)" = "_v0.6.21-pre" ] || die "v0.6.21-pre not installed with v0.6.21, got $(node -v)"
[ "_$(nvm current)" = "_v0.6.21" ] || die "v0.6.21-pre not reported as v0.6.21, got $(nvm current)"

Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,3 @@ ${NPM_VERSION_ONE}"
OUTPUT="$(nvm exec --silent 1 npm --version | head -1)"
EXPECTED_OUTPUT="${NPM_VERSION_ONE}"
[ "$OUTPUT" = "$EXPECTED_OUTPUT" ] || die "\`nvm exec --silent\` failed to suppress io.js preamble; expected '$EXPECTED_OUTPUT', got '$OUTPUT'"

Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ echo "0.10.7" > .nvmrc
[ "$(nvm exec npm --version | tail -1)" = "$NPM_VERSION_TEN" ] || die "\`nvm exec\` failed to run with the .nvmrc version"

[ "$(nvm exec npm --version | head -1)" = "Found '$PWD/.nvmrc' with version <0.10.7>" ] || die "\`nvm exec\` failed to print out the \"found in .nvmrc\" message"

1 change: 0 additions & 1 deletion test/slow/nvm exec/setup_dir
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ nvm install --lts
if [ -f ".nvmrc" ]; then
mv .nvmrc .nvmrc.bak
fi

1 change: 0 additions & 1 deletion test/slow/nvm exec/teardown_dir
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ rm .nvmrc
if [ -f ".nvmrc.bak" ]; then
mv .nvmrc.bak .nvmrc
fi

Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ ACTUAL_MSG="$(nvm reinstall-packages 0.10.28 2>&1 > /dev/null)"
EXPECTED_ERROR_CODE="2"
ACTUAL_ERROR_CODE="$(nvm reinstall-packages 0.10.28 > /dev/null 2>&1 ; echo $?)"
[ "~$ACTUAL_ERROR_CODE" = "~$EXPECTED_ERROR_CODE" ] || die "'nvm use 0.10.28 && nvm reinstall-packages 0.10.28' did not fail with the right error code: expected '$EXPECTED_ERROR_CODE', got '$ACTUAL_ERROR_CODE'"

1 change: 0 additions & 1 deletion test/slow/nvm reinstall-packages/setup_dir
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ nvm install 0.10.29
if [ -f ".nvmrc" ]; then
mv .nvmrc .nvmrc.bak
fi

1 change: 0 additions & 1 deletion test/slow/nvm reinstall-packages/teardown_dir
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ rm -f .nvmrc
if [ -f ".nvmrc.bak" ]; then
mv .nvmrc.bak .nvmrc
fi

Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ die () { echo "$@" ; exit 1; }

nvm run 0.10.7 --harmony --version
[ "_$(nvm run 0.10.7 --harmony --version 2>/dev/null | tail -1)" = "_v0.10.7" ] || die "\`nvm run --harmony --version\` failed to run with the correct version"

1 change: 0 additions & 1 deletion test/slow/nvm run/Running "nvm run 0.x" should work
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ die () { echo "$@" ; exit 1; }
\. ../../../nvm.sh

[ "$(nvm run 0.10.7 --version | tail -1)" = "v0.10.7" ] || die "\`nvm run\` failed to run with the correct version"

Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ echo "0.10.7" > .nvmrc
[ "$(nvm run --version | tail -1)" = "v0.10.7" ] || die "\`nvm run\` failed to run with the .nvmrc version"

[ "$(nvm run --version | head -1)" = "Found '$PWD/.nvmrc' with version <0.10.7>" ] || die "\`nvm run\` failed to print out the \"found in .nvmrc\" message"

1 change: 0 additions & 1 deletion test/slow/nvm run/setup_dir
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ nvm install --lts
if [ -f ".nvmrc" ]; then
mv .nvmrc .nvmrc.bak
fi

1 change: 0 additions & 1 deletion test/slow/nvm run/teardown_dir
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ rm .nvmrc
if [ -f ".nvmrc.bak" ]; then
mv .nvmrc.bak .nvmrc
fi

1 change: 0 additions & 1 deletion test/slow/nvm_get_latest/nvm_get_latest
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,3 @@ EXIT_CODE="$(nvm_get_latest >/dev/null 2>&1 ; echo $?)"


cleanup

1 change: 0 additions & 1 deletion test/slow/nvm_get_latest/nvm_get_latest failed redirect
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ EXIT_CODE="$(nvm_get_latest >/dev/null 2>&1 ; echo $?)"
|| die "failed redirect did not exit with code 2, got $EXIT_CODE"

cleanup

Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ NVM_LS_CURRENT="$(nvm ls current | strip_colors | \grep -o v0.10.1)"
NVM_ALIAS_DEFAULT="$(nvm alias default | strip_colors)"
[ "_$NVM_ALIAS_DEFAULT" = "_default -> 0.10.1 (-> v0.10.1)" ] \
|| die "'nvm alias default did not return 'default -> 0.10.1 (-> v0.10.1)', got '$NVM_ALIAS_DEFAULT'"

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@ nvm_version 0.10.2 >/dev/null 2>&1 || die "v0.10.2 not installed: $(nvm ls)"

NVM_LS_CURRENT="$(nvm ls current | \grep -o v0.10.2)"
[ "_$NVM_LS_CURRENT" = '_v0.10.2' ] || die "'nvm ls current' did not return '-> v0.10.2', got '$NVM_LS_CURRENT' `nvm ls`"

Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@ NVM_LS_CURRENT="$(nvm ls current | strip_colors | command grep -o v0.10.2)"
NVM_ALIAS_DEFAULT="$(nvm alias default | strip_colors)"
[ "_$NVM_ALIAS_DEFAULT" = "_default -> 0.10.2 (-> v0.10.2)" ] \
|| die "'nvm alias default did not return 'default -> 0.10.2 (-> v0.10.2)', got '$NVM_ALIAS_DEFAULT'"

Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,3 @@ echo 'sourcing complete.'

NVM_CURRENT="$(nvm current)"
[ "_$NVM_CURRENT" = '_none' ] || [ "_$NVM_CURRENT" = '_system' ] || die "'nvm current' did not return 'none' or 'system', got '$NVM_CURRENT' `nvm ls`"

1 change: 0 additions & 1 deletion test/sourcing/setup
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ rm -rf ../../v0.9.12
nvm install 0.10.1 || echo >&2 'nvm install 0.10.1 failed'
nvm unalias default || 'removing default alias failed'
nvm unload || echo >&2 'nvm unload failed'

1 change: 0 additions & 1 deletion test/sourcing/teardown
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ rm -rf ../../alias
rm -rf ../../v0.10.1
rm -rf ../../v0.10.2
rm -f ../../.nvmrc