mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
res.respond: allow for thrid parameter (message), refactor shared ops responses and adapt tests
This commit is contained in:
@@ -31,9 +31,9 @@ describe('shared.ops.reset', () => {
|
||||
|
||||
|
||||
it('resets a user', () => {
|
||||
let response = reset(user);
|
||||
let [, message] = reset(user);
|
||||
|
||||
expect(response.message).to.equal(i18n.t('resetComplete'));
|
||||
expect(message).to.equal(i18n.t('resetComplete'));
|
||||
});
|
||||
|
||||
it('resets user\'s health', () => {
|
||||
|
||||
Reference in New Issue
Block a user