Update expected URLs for tests

- after email is sent the user is redirected to an information page
- after login the user is redirected through the sso page
This commit is contained in:
Jackson Harper
2022-07-26 15:17:55 -07:00
parent 6cad41ec1e
commit 8b072ab094

View File

@ -61,7 +61,7 @@ describe('auth router', () => {
sinon.restore()
})
it('redirects to login page', async () => {
it('redirects to verify email', async () => {
const res = await signupRequest(
email,
password,
@ -69,7 +69,7 @@ describe('auth router', () => {
username
).expect(302)
expect(res.header.location).to.endWith(
'/email-login?message=SIGNUP_SUCCESS'
'/verify-email?message=SIGNUP_SUCCESS'
)
})
@ -173,9 +173,9 @@ describe('auth router', () => {
password = correctPassword
})
it('redirects to home page', async () => {
it('redirects to sso page', async () => {
const res = await loginRequest(email, password).expect(302)
expect(res.header.location).to.endWith('/home')
expect(res.header.location).to.contain('/api/client/auth?tok')
})
it('set auth token in cookie', async () => {