mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-05 15:44:21 +00:00
Fix error message casing for email already exists in useProfileSettings tests
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user