mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add test
This commit is contained in:
parent
f8fc1306df
commit
b9ef239e84
1 changed files with 17 additions and 0 deletions
|
|
@ -152,6 +152,23 @@ describe('auth router', () => {
|
|||
)
|
||||
})
|
||||
})
|
||||
|
||||
context('when password is over max length', () => {
|
||||
before(() => {
|
||||
email = 'Some_email'
|
||||
password = 'badpass'.repeat(100)
|
||||
username = 'omnivore_admin'
|
||||
})
|
||||
|
||||
it('redirects to sign up page with error code INVALID_PASSWORD', async () => {
|
||||
const res = await signupRequest(email, password, name, username).expect(
|
||||
302
|
||||
)
|
||||
expect(res.header.location).to.endWith(
|
||||
'/email-signup?errorCodes=INVALID_PASSWORD'
|
||||
)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('login', () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue