nvm/test/fast
Jordan Harband 2a513a1bc0
[Fix] `nvm_ls`: Reverts #1462 to fix io.js sorting.
<details>
<summary>Before this revert:</summary>

```sh
iojs-v3.3.1
iojs-v2.5.0
v0.6.21
v0.7.12
iojs-v1.8.4
v0.8.28
v0.9.12
v0.10.48
v0.11.16
v0.12.9
v0.12.18
v0.12.87
v4.9.1
v5.11.1
v5.12.0
v6.14.4
v6.16.0
v7.10.1
v8.6.0
v8.9.1
v8.10.0
v8.11.3
v8.11.4
v8.12.0
v8.13.0
v8.14.1
v8.15.0
v9.11.2
v10.0.0
v10.1.0
v10.2.1
v10.3.0
v10.4.1
v10.5.0
v10.6.0
v10.7.0
v10.8.0
v10.9.0
v10.10.0
v10.11.0
v10.12.0
v10.13.0
v10.14.2
v10.15.1
v11.0.0
v11.1.0
v11.2.0
v11.3.0
v11.4.0
v11.5.0
v11.6.0
v11.7.0
v11.8.0
v11.9.0
v11.10.0
```
</details>

<details>
<summary>After this revert:</summary>

```sh
v0.6.21
v0.7.12
v0.8.28
v0.9.12
v0.10.48
v0.11.16
v0.12.9
v0.12.18
v0.12.87
iojs-v1.8.4
iojs-v2.5.0
iojs-v3.3.1
v4.9.1
v5.11.1
v5.12.0
v6.14.4
v6.16.0
v7.10.1
v8.6.0
v8.9.1
v8.10.0
v8.11.3
v8.11.4
v8.12.0
v8.13.0
v8.14.1
v8.15.0
v9.11.2
v10.0.0
v10.1.0
v10.2.1
v10.3.0
v10.4.1
v10.5.0
v10.6.0
v10.7.0
v10.8.0
v10.9.0
v10.10.0
v10.11.0
v10.12.0
v10.13.0
v10.14.2
v10.15.1
v11.0.0
v11.1.0
v11.2.0
v11.3.0
v11.4.0
v11.5.0
v11.6.0
v11.7.0
v11.8.0
v11.9.0
v11.10.0
```
</details>

In other words, the sorting needs to happen *before* the `NVM_NODE_PREFIX` is removed.
2019-02-23 15:02:31 -08:00
..
Aliases [Docs] `unalias`: add more specific error message for builtin aliases 2019-01-23 16:39:57 -08:00
Listing paths [Tests] update most mkdirs to use make_fake_{node,iojs} 2018-06-13 10:38:19 -07:00
Listing versions [Fix] `nvm_ls`: Reverts #1462 to fix io.js sorting. 2019-02-23 15:02:31 -08:00
Unit tests [Fix] `default_packages`: work when the file lacks a trailing newline 2019-02-02 13:45:11 -08:00
Running "nvm alias" should create a file in the alias directory. [Tests] Replace all dots with backslash dots 2016-11-03 23:44:59 -07:00
Running "nvm current" should display current nvm environment. [Tests] die() in tests should quote "$@" for echo 2016-11-07 03:34:36 +08:00
Running "nvm deactivate" should unset the nvm environment variables. [Fix] Improve `nvm_is_version_installed` to check for a node executable instead of root dir 2018-05-31 15:26:30 -07:00
Running "nvm install" with "--reinstall-packages-from" requires a valid version [Tests] update most mkdirs to use make_fake_{node,iojs} 2018-06-13 10:38:19 -07:00
Running "nvm install" with an invalid version fails nicely [Tests] die() in tests should quote "$@" for echo 2016-11-07 03:34:36 +08:00
Running "nvm unalias" should remove the alias file. [Tests] Replace all dots with backslash dots 2016-11-03 23:44:59 -07:00
Running "nvm uninstall" should remove the appropriate directory. [Fix] Improve `nvm_is_version_installed` to check for a node executable instead of root dir 2018-05-31 15:26:30 -07:00
Running "nvm uninstall" with incorrect file permissions fails nicely [Fix] Improve `nvm_is_version_installed` to check for a node executable instead of root dir 2018-05-31 15:26:30 -07:00
Running "nvm unload" should unset all function and variables. [New] add support for `$NVM_DIR/default-packages` file 2017-03-28 09:37:14 -07:00
Running "nvm use foo" where "foo" is circular aborts [Tests] die() in tests should quote "$@" for echo 2016-11-07 03:34:36 +08:00
Running "nvm use iojs" uses latest io.js version [Tests] die() in tests should quote "$@" for echo 2016-11-07 03:34:36 +08:00
Running "nvm use system" should work as expected [Fix] `set -u`: ensure `NVM_USE_OUTPUT` is always set. 2017-11-23 10:02:37 -06:00
Running "nvm use x" should create and change the "current" symlink [Tests] update most mkdirs to use make_fake_{node,iojs} 2018-06-13 10:38:19 -07:00
Running "nvm use x" should not create the "current" symlink if $NVM_SYMLINK_CURRENT is false [Tests] update most mkdirs to use make_fake_{node,iojs} 2018-06-13 10:38:19 -07:00
Running "nvm use" should drop CR char automatically. [Fix] Improve .nvmrc reading process 2018-02-20 03:34:43 +08:00
Sourcing nvm.sh should make the nvm command available. [Tests] Replace all dots with backslash dots 2016-11-03 23:44:59 -07:00
Sourcing nvm.sh should not modify parameters of caller [Tests] Replace all dots with backslash dots 2016-11-03 23:44:59 -07:00
nvm should remove the last trailing slash in $NVM_DIR [Fix] Remove $NVM_DIR trailing slash automatically, fix #1708 2018-04-12 14:14:58 +08:00
setup [Tests] use `-ex` option during tests when possible 2016-07-10 19:58:32 -07:00
setup_dir [Tests] use `-ex` option during tests when possible 2016-07-10 19:58:32 -07:00
teardown [Tests] use `-ex` option during tests when possible 2016-07-10 19:58:32 -07:00
teardown_dir [Tests] use `-ex` option during tests when possible 2016-07-10 19:58:32 -07:00