storage-upload/test/helper.server.js

18 lines
343 B
JavaScript
Raw Normal View History

2017-12-09 21:51:18 +00:00
// import _ from 'lodash'
// import sinon from 'sinon'
import server from '../server'
import client from './helper.client'
2017-12-10 09:45:38 +00:00
import defaults from '../api/defaults'
2017-12-09 21:51:18 +00:00
after(() => server.close())
export const createClient = client
2017-12-10 09:45:38 +00:00
export function createContext(opts) {
return defaults(opts, {
query: { },
req: { },
res: { },
})
}