mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 22:31:51 +00:00
Split up this nvm current
and node 0.6.21-pre
test into separate tests.
This commit is contained in:
parent
448bd38a55
commit
78c1f2cf9d
@ -7,8 +7,3 @@ die () { echo $@ ; exit 1; }
|
|||||||
nvm install 0.10
|
nvm install 0.10
|
||||||
|
|
||||||
[ "$(nvm current)" = "$(node -v)" ] || die "Failed to find current version: got \"$(nvm current)\", expected \"$(node -v)\""
|
[ "$(nvm current)" = "$(node -v)" ] || die "Failed to find current version: got \"$(nvm current)\", expected \"$(node -v)\""
|
||||||
|
|
||||||
nvm install 0.6.21
|
|
||||||
[ "$(node -v)" = "v0.6.21-pre" ] || die "v0.6.21-pre not installed with v0.6.21"
|
|
||||||
[ "$(nvm current)" = "v0.6.21" ] || die "v0.6.21-pre not reported as v0.6.21"
|
|
||||||
|
|
||||||
|
10
test/slow/node 0.6.21 should install 0.6.21-pre
Executable file
10
test/slow/node 0.6.21 should install 0.6.21-pre
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
die () { echo $@ ; exit 1; }
|
||||||
|
|
||||||
|
. ../../nvm.sh
|
||||||
|
|
||||||
|
nvm install 0.6.21
|
||||||
|
[ "$(node -v)" = "v0.6.21-pre" ] || die "v0.6.21-pre not installed with v0.6.21"
|
||||||
|
[ "$(nvm current)" = "v0.6.21" ] || die "v0.6.21-pre not reported as v0.6.21"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user