fix(tests): sanity and common

This commit is contained in:
SabreCat
2022-08-19 16:10:18 -05:00
parent 49a20218a5
commit f063b9e81c
3 changed files with 2 additions and 14 deletions

View File

@@ -249,18 +249,6 @@ describe('shared.ops.scoreTask', () => {
expect(ref.afterUser._tmp.quest.progressDelta).to.eql(secondTaskDelta); 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', () => { context('habits', () => {
it('up', () => { it('up', () => {
options = { options = {

View File

@@ -303,7 +303,7 @@ export default {
return `@${userName} completed at ${moment(completedDate).format('h:mm A')}`; return `@${userName} completed at ${moment(completedDate).format('h:mm A')}`;
} }
if (this.userIsAssigned) { if (this.userIsAssigned) {
return this.$t('you'); return this.$t('youEmphasized');
} }
return `@${userName}`; return `@${userName}`;
} }

View File

@@ -369,7 +369,7 @@
"dayStart": "<strong>Day start</strong>: <%= startTime %>", "dayStart": "<strong>Day start</strong>: <%= startTime %>",
"viewStatus": "Status", "viewStatus": "Status",
"lastCompleted": "Last completed", "lastCompleted": "Last completed",
"you": "<strong>You</strong>", "youEmphasized": "<strong>You</strong>",
"chatTemporarilyUnavailable": "Chat is temporarily unavailable. Please try again later.", "chatTemporarilyUnavailable": "Chat is temporarily unavailable. Please try again later.",
"newGroupsWelcome": "Welcome to the New Shared Task Board!", "newGroupsWelcome": "Welcome to the New Shared Task Board!",
"newGroupsWhatsNew": "Check Out What's New:", "newGroupsWhatsNew": "Check Out What's New:",