From 8b072ab094e8c672fdc35868ff617562e4ba9c1e Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Tue, 26 Jul 2022 15:17:55 -0700 Subject: [PATCH] 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 --- packages/api/test/routers/auth.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/api/test/routers/auth.test.ts b/packages/api/test/routers/auth.test.ts index fa14521be..55759d686 100644 --- a/packages/api/test/routers/auth.test.ts +++ b/packages/api/test/routers/auth.test.ts @@ -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 () => {