2017-12-09 21:51:18 +00:00
|
|
|
// import _ from 'lodash'
|
|
|
|
// import sinon from 'sinon'
|
2021-07-03 13:56:53 +00:00
|
|
|
import Client from './helper.client.mjs'
|
|
|
|
import defaults from '../api/defaults.mjs'
|
|
|
|
import '../api/server.mjs'
|
2017-12-09 21:51:18 +00:00
|
|
|
|
2021-07-03 13:56:53 +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: { },
|
|
|
|
})
|
|
|
|
}
|