Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should add the proper header and send the content', () => {
const m = H.json({ a: 1 }, E.toError)
const c = new MockConnection(new MockRequest())
return assertSuccess(m, c, undefined, [
{ type: 'setHeader', name: 'Content-Type', value: 'application/json' },
{ type: 'setBody', body: `{"a":1}` },
])
})
})