Skip to content
Myr

[Tests] add `nvm run --lts` tests.

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 58a82a1 · Browse files · 3 files+21 added−0 removed
This commit

State

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

Diff stats

3 files+21 added−0 removed

  • tests:+21 added−0 removed

3 files+21 added−0 removed

added:test/slow/nvm run/Running "nvm run --lts" should work+15 added
1#!/bin/sh23set -ex45die () { echo $@ ; exit 1; }67. ../../../nvm.sh89OUTPUT="$(nvm run --silent --lts --version)"10EXPECTED_OUTPUT="$(nvm_match_version 'lts/*')"11[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "\`nvm run --lts\` failed to run with the correct version; expected >${EXPECTED_OUTPUT}<, got >${OUTPUT}<"1213OUTPUT="$(nvm run --silent --lts=argon --version)"14EXPECTED_OUTPUT="$(nvm_match_version 'lts/argon')"15[ "${OUTPUT}" = "${EXPECTED_OUTPUT}" ] || die "\`nvm run --lts=argon\` failed to run with the correct version; expected >${EXPECTED_OUTPUT}<, got >${OUTPUT}<"
modified:test/slow/nvm run/setup_dir+3 added
1#!/bin/sh23. ../../../nvm.sh45nvm install 0.10.76nvm install --lts=argon7nvm install --lts89if [ -f ".nvmrc" ]; then10 mv .nvmrc .nvmrc.bak11fi
1 unmodified line
modified:test/slow/nvm run/teardown_dir+3 added
1#!/bin/sh23. ../../../nvm.sh45nvm deactivate6nvm uninstall v0.10.77nvm uninstall --lts=argon8nvm uninstall --lts910rm .nvmrc1112if [ -f ".nvmrc.bak" ]; then
3 unmodified lines