storage-upload/test/helper.server.mjs

18 lines
340 B
JavaScript
Raw Normal View History

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