Beta Shell
v2.0 ยท web2.us.cloudlogin.co
[FM]
[CMD]
[PHP]
[DB]
[INFO]
[SEC]
File Manager
~
/
usr
/
local
/
nvm
/
test
/
fast
Upload
25 items
Name
Size
Perms
Modified
Actions
[ .. / .. ]
Aliases
-
drwxr-xr-x
2023-02-07 16:19:04
Del
Listing paths
-
drwxr-xr-x
2023-02-07 16:19:04
Del
Listing versions
-
drwxr-xr-x
2023-02-07 16:19:04
Del
Running "nvm alias" should create a file in the alias directory.
89 B
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
Running "nvm current" should display current nvm environment.
218 B
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
Running "nvm deactivate" should unset the nvm environment variables.
767 B
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
Running "nvm install" with "--reinstall-packages-from" requires a valid version
1.44 KB
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
Running "nvm install" with an invalid version fails nicely
271 B
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
Running "nvm unalias" should remove the alias file.
100 B
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
Running "nvm uninstall" should remove the appropriate directory.
137 B
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
Running "nvm unload" should unset all function and variables.
186 B
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
Running "nvm use foo" where "foo" is circular aborts
820 B
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
Running "nvm use iojs" uses latest io.js version
1.13 KB
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
Running "nvm use system" should work as expected
1.14 KB
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
Running "nvm use x" should create and change the "current" symlink
655 B
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
Running "nvm use x" should not create the "current" symlink if $NVM_SYMLINK_CURRENT is false
1.97 KB
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
Sourcing nvm.sh should make the nvm command available.
30 B
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
Sourcing nvm.sh should not modify parameters of caller
52 B
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
Unit tests
-
drwxr-xr-x
2023-02-07 16:19:04
Del
setup
180 B
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
setup_dir
186 B
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
teardown
187 B
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
teardown_dir
148 B
-rwxr-xr-x
2023-02-07 16:19:04
Edit
Del
Editing: Running "nvm use x" should create and change the "current" symlink
(655 B)
Path: /usr/local/nvm/test/fast/Running "nvm use x" should create and change the "current" symlink
Back
#!/usr/bin/env bash export NVM_SYMLINK_CURRENT=true . ../../nvm.sh rm -rf ../../v0.10.29 mkdir ../../v0.10.29 nvm use 0.10.29 rmdir ../../v0.10.29 if [ ! -L ../../current ];then echo "Expected 'current' symlink to be created!" exit 1 fi oldLink="$(readlink ../../current)" if [ "$(basename $oldLink)" != 'v0.10.29' ];then echo "Expected 'current' to point to v0.10.29 but was $oldLink" exit 1 fi rm -rf ../../v0.11.13 mkdir ../../v0.11.13 nvm use 0.11.13 rmdir ../../v0.11.13 newLink="$(readlink ../../current)" if [ "$(basename $newLink)" != 'v0.11.13' ];then echo "Expected 'current' to point to v0.11.13 but was $newLink" exit 1 fi