mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
test set auth token after login
This commit is contained in:
parent
abb1a414c1
commit
bd2327a3ae
1 changed files with 6 additions and 0 deletions
|
|
@ -173,6 +173,12 @@ describe('auth router', () => {
|
|||
const res = await loginRequest(email, password).expect(302)
|
||||
expect(res.header.location).to.endWith('/waitlist')
|
||||
})
|
||||
|
||||
it('set auth token in cookie', async () => {
|
||||
const res = await loginRequest(email, password).expect(302)
|
||||
expect(res.header['set-cookie']).to.be.an('array')
|
||||
expect(res.header['set-cookie'][0]).to.contain('auth')
|
||||
})
|
||||
})
|
||||
|
||||
context('when user not exists', () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue