api
|
* |
1 |
sould fail to require if nvm does not exists
|
- |
|
Hooks
|
* |
2 |
should be call for new instance only
|
- |
|
should have passed in properties
|
- |
|
hookable
|
* |
7 |
should be a function
|
- |
|
should throw a TypeError if argument is not a function
|
- |
|
should return a function (1st level)
|
- |
|
should return a Promise (2nd level)
|
- |
|
should execute a "pre" hook
|
- |
|
should execute a "post" hook
|
- |
|
should reject and execute an "error" hook on Error
|
- |
|
exists
|
* |
3 |
should be a function
|
- |
|
should return false if nvm does not exists
|
- |
|
should return true if nvm exists
|
- |
|
shell
|
* |
3 |
should be a function
|
- |
|
should return a ChildProcess
|
- |
|
should execute with success
|
- |
|
nvm
|
* |
3 |
should be a function
|
- |
|
should reject the Promise on Error
|
- |
|
should return and resolve the Promise
|
- |
|
nvmInstall
|
* |
5 |
should be a function
|
- |
|
should reject with no Node version
|
- |
|
should reject with an invalid Node version
|
- |
|
should resolve with a valid Node version
|
- |
|
should execute an other install command
|
- |
|
nvmTest
|
* |
5 |
should be a function
|
- |
|
should reject with no Node version
|
- |
|
should reject with an invalid Node version
|
- |
|
should resolve with a valid Node version
|
- |
|
should execute an other test command
|
- |
|
nvmTestVersion
|
* |
4 |
should be a function
|
- |
|
should reject with no Node version
|
- |
|
should resolve with a valid Node version
|
- |
|
should execute others install and test commands
|
- |
|
nvmTestVersions
|
* |
5 |
should be a function
|
- |
|
should return error code with no Node version
|
- |
|
should return error code with an invalid Node version
|
- |
|
should resolve with a valid Node version
|
- |
|
should execute others install and test commands
|
- |
|