main lib, fix tests

This commit is contained in:
Lloyd Brookes
2017-06-12 00:18:32 +01:00
parent d07ef41cd2
commit 7dccc470df
4 changed files with 48 additions and 69 deletions

View File

@ -11,9 +11,10 @@ runner.test('basic', async function () {
const localWebServer = new LocalWebServer({
port: port,
directory: 'test/fixture',
'log.format': 'none'
logFormat: 'none'
})
localWebServer.start()
localWebServer.attachView()
localWebServer.launch()
const response = await request(`http://localhost:${port}/one.txt`)
localWebServer.server.close()
a.strictEqual(response.data.toString(), 'one\n')