mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-13 17:52:22 +00:00
add a missing full stop to a message and to the associated test
This commit is contained in:
parent
69553260d3
commit
431eaec71a
2 changed files with 2 additions and 2 deletions
|
|
@ -194,7 +194,7 @@ describe('Groups Controller', function() {
|
|||
|
||||
expect(group.leave).to.not.be.called;
|
||||
expect(res.json).to.be.calledOnce;
|
||||
expect(res.json).to.be.calledWith(403, 'You cannot leave party during an active quest. Please leave the quest first');
|
||||
expect(res.json).to.be.calledWith(403, 'You cannot leave party during an active quest. Please leave the quest first.');
|
||||
});
|
||||
|
||||
it('prevents quest leader from leaving a party if they have started a quest', function() {
|
||||
|
|
|
|||
|
|
@ -524,7 +524,7 @@ api.leave = function(req, res, next) {
|
|||
}
|
||||
|
||||
if (group.quest && group.quest.active && group.quest.members && group.quest.members[user._id]) {
|
||||
return res.json(403, 'You cannot leave party during an active quest. Please leave the quest first');
|
||||
return res.json(403, 'You cannot leave party during an active quest. Please leave the quest first.');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue