mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-14 19:56:23 +00:00
fix(tests): sanity and common
This commit is contained in:
parent
49a20218a5
commit
f063b9e81c
3 changed files with 2 additions and 14 deletions
|
|
@ -249,18 +249,6 @@ describe('shared.ops.scoreTask', () => {
|
|||
expect(ref.afterUser._tmp.quest.progressDelta).to.eql(secondTaskDelta);
|
||||
});
|
||||
|
||||
it('does not modify stats when task need approval', () => {
|
||||
todo.group.approval.required = true;
|
||||
options = {
|
||||
user: ref.afterUser, task: todo, direction: 'up', times: 5, cron: false,
|
||||
};
|
||||
scoreTask(options);
|
||||
|
||||
expect(ref.afterUser.stats.hp).to.eql(50);
|
||||
expect(ref.afterUser.stats.exp).to.equal(ref.beforeUser.stats.exp);
|
||||
expect(ref.afterUser.stats.gp).to.equal(ref.beforeUser.stats.gp);
|
||||
});
|
||||
|
||||
context('habits', () => {
|
||||
it('up', () => {
|
||||
options = {
|
||||
|
|
|
|||
|
|
@ -303,7 +303,7 @@ export default {
|
|||
return `@${userName} completed at ${moment(completedDate).format('h:mm A')}`;
|
||||
}
|
||||
if (this.userIsAssigned) {
|
||||
return this.$t('you');
|
||||
return this.$t('youEmphasized');
|
||||
}
|
||||
return `@${userName}`;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -369,7 +369,7 @@
|
|||
"dayStart": "<strong>Day start</strong>: <%= startTime %>",
|
||||
"viewStatus": "Status",
|
||||
"lastCompleted": "Last completed",
|
||||
"you": "<strong>You</strong>",
|
||||
"youEmphasized": "<strong>You</strong>",
|
||||
"chatTemporarilyUnavailable": "Chat is temporarily unavailable. Please try again later.",
|
||||
"newGroupsWelcome": "Welcome to the New Shared Task Board!",
|
||||
"newGroupsWhatsNew": "Check Out What's New:",
|
||||
|
|
|
|||
Loading…
Reference in a new issue