![ljharb@gmail.com](/assets/img/avatar_default.png)
6 changed files with 696 additions and 0 deletions
@ -0,0 +1,41 @@ |
|||||||
|
iojs-v1.0.0 |
||||||
|
iojs-v1.0.1 |
||||||
|
iojs-v1.0.2 |
||||||
|
iojs-v1.0.3 |
||||||
|
iojs-v1.0.4 |
||||||
|
iojs-v1.1.0 |
||||||
|
iojs-v1.2.0 |
||||||
|
iojs-v1.3.0 |
||||||
|
iojs-v1.4.1 |
||||||
|
iojs-v1.4.2 |
||||||
|
iojs-v1.4.3 |
||||||
|
iojs-v1.5.0 |
||||||
|
iojs-v1.5.1 |
||||||
|
iojs-v1.6.0 |
||||||
|
iojs-v1.6.1 |
||||||
|
iojs-v1.6.2 |
||||||
|
iojs-v1.6.3 |
||||||
|
iojs-v1.6.4 |
||||||
|
iojs-v1.7.1 |
||||||
|
iojs-v1.8.1 |
||||||
|
iojs-v1.8.2 |
||||||
|
iojs-v1.8.3 |
||||||
|
iojs-v1.8.4 |
||||||
|
iojs-v2.0.0 |
||||||
|
iojs-v2.0.1 |
||||||
|
iojs-v2.0.2 |
||||||
|
iojs-v2.1.0 |
||||||
|
iojs-v2.2.0 |
||||||
|
iojs-v2.2.1 |
||||||
|
iojs-v2.3.0 |
||||||
|
iojs-v2.3.1 |
||||||
|
iojs-v2.3.2 |
||||||
|
iojs-v2.3.3 |
||||||
|
iojs-v2.3.4 |
||||||
|
iojs-v2.4.0 |
||||||
|
iojs-v2.5.0 |
||||||
|
iojs-v3.0.0 |
||||||
|
iojs-v3.1.0 |
||||||
|
iojs-v3.2.0 |
||||||
|
iojs-v3.3.0 |
||||||
|
iojs-v3.3.1 |
@ -0,0 +1,32 @@ |
|||||||
|
#!/bin/sh |
||||||
|
|
||||||
|
set -ex |
||||||
|
|
||||||
|
die () { echo $@ ; cleanup ; exit 1; } |
||||||
|
|
||||||
|
cleanup() { |
||||||
|
unset -f nvm_download nvm_ls_remote nvm_ls_remote_iojs |
||||||
|
} |
||||||
|
|
||||||
|
. ../../../nvm.sh |
||||||
|
|
||||||
|
nvm deactivate 2>/dev/null || die 'unable to deactivate' |
||||||
|
|
||||||
|
. ../../common.sh |
||||||
|
|
||||||
|
REMOTE="$PWD/mocks/nvm_ls_remote.txt" |
||||||
|
nvm_ls_remote() { |
||||||
|
cat "$REMOTE" |
||||||
|
} |
||||||
|
REMOTE_IOJS="$PWD/mocks/nvm_ls_remote_iojs.txt" |
||||||
|
nvm_ls_remote_iojs() { |
||||||
|
cat "$REMOTE_IOJS" |
||||||
|
} |
||||||
|
|
||||||
|
EXPECTED_OUTPUT_PATH="$PWD/mocks/nvm ls-remote.txt" |
||||||
|
|
||||||
|
OUTPUT="$(nvm ls-remote | sed 's/[ \t]*$//')" |
||||||
|
EXPECTED_OUTPUT="$(cat "$EXPECTED_OUTPUT_PATH" | sed 's/[ \t]*$//' )" |
||||||
|
[ "_$OUTPUT" = "_$EXPECTED_OUTPUT" ] || die "bare nvm ls-remote did not output expected sorted versions; got $(echo ">$OUTPUT<") expected $(echo ">$EXPECTED_OUTPUT<")" |
||||||
|
|
||||||
|
cleanup |
Loading…
Reference in new issue