getAlias()
|
getAlias |
4 |
should return an empty string if the alias is not resolvable
|
- |
|
should eventually throw an error if the alias is not resolvable
|
- |
|
should return the path or URL of the specified alias
|
- |
|
should return the specified value if it is not a path alias
|
- |
|
setAlias()
|
setAlias |
4 |
should throw an error if the specified name is empty
|
- |
|
should normalize the directory separator
|
- |
|
should add the required @ character to the specified name
|
- |
|
should remove an alias if the specified value is empty
|
- |
|
Application
|
Application |
11 |
#address
|
Application#address |
2 |
should have an "any IPv4" address as the default address
|
- |
|
should be the value of the underlying "address" setting
|
- |
|
#debug
|
Application#debug |
2 |
should be false in production environment
|
- |
|
should be true in development environment
|
- |
|
#env
|
Application#env |
2 |
should be "development" if the NODE_ENV environment variable is not set
|
- |
|
should equal the value of NODE_ENV environment variable when it is set
|
- |
|
#listening
|
Application#listening |
1 |
should return whether the application is listening
|
- |
|
#name
|
Application#name |
2 |
should be "My Application" by default
|
- |
|
should be the value of the underlying "name" setting
|
- |
|
#port
|
Application#port |
2 |
should be 3000 by default
|
- |
|
should be the value of the underlying "port" setting
|
- |
|
app()
|
app |
2 |
should return a null reference by default
|
- |
|
should return a singleton instance when the application is started
|
- |
|
createObject()
|
createObject |
5 |
should throw an error if the type is not resolvable
|
- |
|
should return instances of any class from NPM packages
|
- |
|
should return instances of any class from local modules
|
- |
|
should handle the constructor parameters
|
- |
|
should handle the property initialization
|
- |
|
registerType()
|
registerType |
3 |
should throw an error if the class alias is invalid
|
- |
|
should return the constructor of any class from NPM packages
|
- |
|
should return the constructor of any class from local modules
|
- |
|