reintroduced the errors.ErrSameUsernameProvided

This commit is contained in:
Wyatt Johnson
2018-01-05 11:31:40 -07:00
parent 7b5993bc60
commit c9bc9a4b10
3 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -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);