mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
res.respond: allow for thrid parameter (message), refactor shared ops responses and adapt tests
This commit is contained in:
@@ -32,9 +32,9 @@ describe('shared.ops.reroll', () => {
|
||||
});
|
||||
|
||||
it('rerolls a user with enough gems', () => {
|
||||
let response = reroll(user);
|
||||
let [, message] = reroll(user);
|
||||
|
||||
expect(response.message).to.equal(i18n.t('rerollComplete'));
|
||||
expect(message).to.equal(i18n.t('rerollComplete'));
|
||||
});
|
||||
|
||||
it('reduces a user\'s balance', () => {
|
||||
|
||||
Reference in New Issue
Block a user