Fix error message casing for email already exists in useProfileSettings tests

This commit is contained in:
2025-05-28 18:39:33 +02:00
parent 1532896b27
commit 05c3111f8b

View File

@@ -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());