basic test

This commit is contained in:
Lloyd Brookes
2017-03-21 23:46:53 +00:00
parent 35e7276918
commit 6b7f7a9536
6 changed files with 21 additions and 77 deletions

View File

@ -9,7 +9,7 @@ const Lws = require('lws')
* @alias module:local-web-server
*/
class LocalWebServer extends Lws {
constructor () {
constructor (options) {
const path = require('path')
const stack = [
'lws-log',
@ -28,7 +28,8 @@ class LocalWebServer extends Lws {
].map(name => {
return path.resolve(__dirname, `../node_modules/${name}`)
})
super({ stack, 'config-name': 'local-web-server' })
options = Object.assign({ stack }, options)
super(options)
}
getVersion () {