mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
fix(tests): sanity and common
This commit is contained in:
@@ -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:",
|
||||
|
||||
Reference in New Issue
Block a user