fixed issue if not using mocks
This commit is contained in:
@ -1,3 +1,4 @@
|
|||||||
language: node_js
|
language: node_js
|
||||||
node_js:
|
node_js:
|
||||||
- 'node'
|
- 'node'
|
||||||
|
- '4.2'
|
||||||
|
@ -61,6 +61,7 @@ function localWebServer (options) {
|
|||||||
|
|
||||||
options.rewrite = arrayify(options.rewrite)
|
options.rewrite = arrayify(options.rewrite)
|
||||||
options.forbid = arrayify(options.forbid)
|
options.forbid = arrayify(options.forbid)
|
||||||
|
options.mocks = arrayify(options.mocks)
|
||||||
|
|
||||||
const debug = require('debug')('local-web-server')
|
const debug = require('debug')('local-web-server')
|
||||||
const Koa = require('koa')
|
const Koa = require('koa')
|
||||||
|
Reference in New Issue
Block a user