From 05c3111f8b539ec0452391218acec05044bf75c2 Mon Sep 17 00:00:00 2001 From: LordMathis Date: Wed, 28 May 2025 18:39:33 +0200 Subject: [PATCH] Fix error message casing for email already exists in useProfileSettings tests --- app/src/hooks/useProfileSettings.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/hooks/useProfileSettings.test.ts b/app/src/hooks/useProfileSettings.test.ts index 54500fb..caf80be 100644 --- a/app/src/hooks/useProfileSettings.test.ts +++ b/app/src/hooks/useProfileSettings.test.ts @@ -212,7 +212,7 @@ describe('useProfileSettings', () => { it('handles email errors specifically', async () => { const mockUpdateProfile = vi.mocked(userApi.updateProfile); - mockUpdateProfile.mockRejectedValue(new Error('Email already exists')); + mockUpdateProfile.mockRejectedValue(new Error('email already exists')); const { result } = renderHook(() => useProfileSettings());