Beta Shell
v2.0 ยท web2.us.cloudlogin.co
[FM]
[CMD]
[PHP]
[DB]
[INFO]
[SEC]
File Manager
~
/
usr
/
local
/
nvm
/
test
/
fast
/
Listing versions
Upload
16 items
Name
Size
Perms
Modified
Actions
[ .. / .. ]
Running "nvm ls 0.0.2" should display only version 0.0.2.
390 B
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
Running "nvm ls 0.2" should display only 0.2.x versions.
839 B
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
Running "nvm ls foo" should return a nonzero exit code when not found
74 B
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
Running "nvm ls io" should return NA
57 B
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
Running "nvm ls node_" should return a nonzero exit code when not found
60 B
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
Running "nvm ls stable" and "nvm ls unstable" should return the appropriate implicit alias
882 B
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
Running "nvm ls system" should include "system" when appropriate
555 B
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
Running "nvm ls" should display all installed versions.
658 B
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
Running "nvm ls" should filter out ".nvm"
172 B
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
Running "nvm ls" should filter out "versions"
212 B
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
Running "nvm ls" should include "system" when appropriate
527 B
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
Running "nvm ls" should list versions in the "versions" directory
316 B
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
Running "nvm ls" with node-like versioning vx.x.x should only list a matched version
169 B
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
teardown
633 B
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
Editing: Running "nvm ls" should display all installed versions.
(658 B)
Path: /usr/local/nvm/test/fast/Listing versions/Running "nvm ls" should display all installed versions.
Back
#!/bin/sh . ../../../nvm.sh mkdir ../../../v0.0.1 mkdir ../../../v0.0.3 mkdir ../../../v0.0.9 mkdir ../../../v0.3.1 mkdir ../../../v0.3.3 mkdir ../../../v0.3.9 mkdir -p ../../../versions/node/v0.12.87 mkdir -p ../../../versions/node/v0.12.9 mkdir -p ../../../versions/io.js/v0.1.2 mkdir -p ../../../versions/io.js/v0.10.2 # The result should contain the version numbers. nvm ls | grep v0.0.1 >/dev/null && nvm ls | grep v0.0.3 >/dev/null && nvm ls | grep v0.0.9 >/dev/null && nvm ls | grep v0.3.1 >/dev/null && nvm ls | grep v0.3.3 >/dev/null && nvm ls | grep v0.3.9 >/dev/null && nvm ls | grep v0.12.87 >/dev/null && nvm ls | grep iojs-v0.1.2 >/dev/null