docs.. examples

This commit is contained in:
Lloyd Brookes
2015-11-15 23:52:13 +00:00
parent b945f29feb
commit a5a1b6f9ec
10 changed files with 83 additions and 13 deletions

View File

@ -101,12 +101,12 @@ test('mime', function(t){
}})
})
test('blacklist', function (t) {
test('forbid', function (t) {
t.plan(2)
const app = localWebServer({
log: { format: 'none' },
static: { root: __dirname + '/fixture' },
blacklist: [ /php$/, /html$/ ]
forbid: [ /php$/, /html$/ ]
})
const server = launchServer(app, { leaveOpen: true })
request('http://localhost:8100/something.php')