From 75c0745d7e6d181f91a4b9fa0f8ba1569ee6aa12 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Fri, 19 Apr 2024 11:19:39 +0800 Subject: [PATCH] fix tests --- packages/api/test/routers/auth.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/api/test/routers/auth.test.ts b/packages/api/test/routers/auth.test.ts index 8bfd3e5e4..32b438047 100644 --- a/packages/api/test/routers/auth.test.ts +++ b/packages/api/test/routers/auth.test.ts @@ -90,12 +90,12 @@ describe('auth router', () => { await deleteUser(user.id) }) - it('redirects to sign up page with error code USER_EXISTS', async () => { + it('redirects to sign up page with error code UNKNOWN', async () => { const res = await signupRequest(email, password, name, username).expect( 302 ) expect(res.header.location).to.endWith( - '/email-signup?errorCodes=USER_EXISTS' + '/email-signup?errorCodes=UNKNOWN' ) }) })