mirror of
https://github.com/wassname/talk.git
synced 2026-08-15 12:55:10 +08:00
reintroduced the errors.ErrSameUsernameProvided
This commit is contained in:
@@ -238,7 +238,7 @@ describe('services.UsersService', () => {
|
||||
await UsersService[func](user.id, user.username);
|
||||
throw new Error('edit was processed successfully');
|
||||
} catch (err) {
|
||||
expect(err).have.property('translation_key', 'USERNAME_IN_USE');
|
||||
expect(err).have.property('translation_key', 'SAME_USERNAME_PROVIDED');
|
||||
}
|
||||
} else {
|
||||
await UsersService[func](user.id, user.username);
|
||||
|
||||
Reference in New Issue
Block a user