upgrade deps.. test

This commit is contained in:
Lloyd Brookes
2017-06-25 19:21:38 +01:00
parent b888315783
commit 008d9dbfa5
3 changed files with 19 additions and 20 deletions

View File

@ -2,9 +2,9 @@ const Lws = require('lws')
const path = require('path')
class LocalWebServer extends Lws {
constructor (options) {
create (options) {
options = Object.assign({
moduleDir: path.resolve(__dirname, `../../node_modules`),
moduleDir: path.resolve(__dirname, `../node_modules`),
modulePrefix: 'lws-',
stack: [
'lws-log',
@ -22,7 +22,7 @@ class LocalWebServer extends Lws {
'lws-index'
]
}, options)
super(options)
return super.create(options)
}
}