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 correct status / header', () => {
const m = H.redirect('/users')
const c = new MockConnection(new MockRequest())
return assertSuccess(m, c, undefined, [
{ type: 'setStatus', status: 302 },
{ type: 'setHeader', name: 'Location', value: '/users' },
])
})
})