mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 22:31:51 +00:00
tests for ls
This commit is contained in:
parent
6f2b1a23ce
commit
2e5a7914c5
14
test/fast/ls/base should show all versions
Executable file
14
test/fast/ls/base should show all versions
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
. ../../../nvm.sh
|
||||
|
||||
mkdir ../../../v0.0.{1,3,9}
|
||||
mkdir ../../../v0.3.{1,3,9}
|
||||
|
||||
# The result should contain the version numbers.
|
||||
nvm ls | grep v0.0.1 &&
|
||||
nvm ls | grep v0.0.3 &&
|
||||
nvm ls | grep v0.0.9 &&
|
||||
nvm ls | grep v0.3.1 &&
|
||||
nvm ls | grep v0.3.3 &&
|
||||
nvm ls | grep v0.3.9
|
10
test/fast/ls/second number version
Executable file
10
test/fast/ls/second number version
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
mkdir ../../../v0.1.3
|
||||
mkdir ../../../v0.2.3
|
||||
|
||||
. ../../../nvm.sh
|
||||
|
||||
# The result should contain only the appropriate version numbers.
|
||||
nvm ls 0.2 | grep v0.2.3 &&
|
||||
nvm ls 0.1 | grep -v v0.2.3
|
@ -1,9 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
. ../../nvm.sh
|
||||
mkdir -p ../../v0.0.{1,3,9}
|
||||
|
||||
# The result should contain the version numbers.
|
||||
nvm ls | grep v0.0.1 &&
|
||||
nvm ls | grep v0.0.3 &&
|
||||
nvm ls | grep v0.0.9
|
Loading…
Reference in New Issue
Block a user