feat: Admin Area Players Management
This commit is contained in:
@@ -57,3 +57,15 @@ describe('formatChangePasswordError', () => {
|
||||
expect(formatChangePasswordError({ code: null, message: null })).toBe('Failed to change password');
|
||||
});
|
||||
});
|
||||
|
||||
describe('ChangePasswordModalComponent admin-reset field errors', () => {
|
||||
it('maps a fieldErrors record to per-path messages', () => {
|
||||
const errors: Record<string, string> = {
|
||||
newPassword: 'Password too short',
|
||||
confirmPassword: 'Confirmation does not match',
|
||||
};
|
||||
expect(errors['newPassword']).toBe('Password too short');
|
||||
expect(errors['confirmPassword']).toBe('Confirmation does not match');
|
||||
expect(errors['confirmNewPassword']).toBeUndefined();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user