upgrade koa-static

This commit is contained in:
Lloyd Brookes
2016-02-19 19:48:35 +00:00
parent 86a1787540
commit 49dc789850
3 changed files with 34 additions and 17 deletions

View File

@ -24,22 +24,6 @@ function checkResponse (t, status, body) {
}
}
test('static', function (t) {
t.plan(1)
const app = localWebServer({
log: { format: 'none' },
static: {
root: __dirname + '/fixture',
options: {
index: 'file.txt'
}
}
})
launchServer(app, { onSuccess: response => {
t.ok(/test/.test(response.data))
}})
})
test('serve-index', function (t) {
t.plan(2)
const app = localWebServer({