Skip to content
Myr

Ensuring that there's a stable and unstable version "available" for this test.

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 e421a0d · Browse files · 1 file+6 added−2 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−2 removed

  • tests:+6 added−2 removed

1 file+6 added−2 removed

modified:test/fast/Listing versions/Running "nvm ls stable" and "nvm ls unstable" should return the appropriate implicit alias+6 added-2 removed
2 unmodified lines
3. ../../../nvm.sh45die () { echo $@ ; exit 1; }67mkdir ../../../v0.2.38mkdir ../../../v0.3.3910EXPECTED_STABLE="$(nvm_print_implicit_alias local stable)"11STABLE_VERSION="$(nvm_version "$EXPECTED_STABLE")"1213EXPECTED_UNSTABLE="$(nvm_print_implicit_alias local unstable)"
7 unmodified lines
2122mkdir ../../../v0.1.223nvm alias stable 0.12425nvm ls stable | \grep -v "$STABLE_VERSION" >/dev/null \26 || die "'nvm ls stable' contained $STABLE_VERSION instead of v0.1.2"27nvm ls stable | \grep v0.1.2 >/dev/null \23 && nvm ls stable | \grep -v "$STABLE_VERSION" >/dev/null \24 || die "'nvm ls stable' did not contain an explicit 'stable' alias"28 || die "'nvm ls stable' did not contain v0.1.2"29