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 cookie', () => {
const m = H.cookie('name', 'value', {})
const c = new MockConnection(new MockRequest())
return assertSuccess(m, c, undefined, [
{ type: 'setCookie', name: 'name', value: 'value', options: {} },
])
})
})
it('should clear the cookie', () => {
const m = pipe(
H.cookie('name', 'value', {}),
H.ichain(() => H.clearCookie('name', {})),
)
const c = new MockConnection(new MockRequest())
return assertSuccess(m, c, undefined, [
{ type: 'setCookie', name: 'name', value: 'value', options: {} },
{ type: 'clearCookie', name: 'name', options: {} },
])
})
})