Browse Source

Removing unnecessary cleanup in "Listing Versions" tests.

master
Jordan Harband 11 years ago
parent
commit
15b3e7b6a8
  1. 3
      test/fast/Listing versions/Running "nvm ls system" should include "system" when appropriate
  2. 5
      test/fast/Listing versions/Running "nvm ls" should filter out "versions"

3
test/fast/Listing versions/Running "nvm ls system" should include "system" when appropriate

@ -1,7 +1,6 @@ @@ -1,7 +1,6 @@
#!/bin/sh
cleanup () { unset -f nvm_has_system_node; }
die () { cleanup ; echo $@ ; exit 1; }
die () { echo $@ ; exit 1; }
. ../../../nvm.sh

5
test/fast/Listing versions/Running "nvm ls" should filter out "versions"

@ -2,13 +2,10 @@ @@ -2,13 +2,10 @@
mkdir ../../../v0.1.3
mkdir ../../../v0.2.3
mkdir ../../../versions
. ../../../nvm.sh
mkdir ../../../versions
[ -z "$(nvm ls | \grep 'versions')" ]
# The result should contain only the appropriate version numbers.
rmdir ../../../versions

Loading…
Cancel
Save