mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
remove tests that are no longer needed because we won't be purging private messages (#10670)
Ref: this comment from paglias: https://github.com/HabitRPG/habitica/issues/7940#issuecomment-406489506
This commit is contained in:
@@ -1589,27 +1589,6 @@ describe('cron', () => {
|
|||||||
flagCount: 0,
|
flagCount: 0,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
xit('does not clear pms under 200', () => {
|
|
||||||
cron({user, tasksByType, daysMissed, analytics});
|
|
||||||
expect(user.inbox.messages[lastMessageId]).to.exist;
|
|
||||||
});
|
|
||||||
|
|
||||||
xit('clears pms over 200', () => {
|
|
||||||
let messageId = common.uuid();
|
|
||||||
user.inbox.messages[messageId] = {
|
|
||||||
id: messageId,
|
|
||||||
text: `test ${messageId}`,
|
|
||||||
timestamp: Number(new Date()),
|
|
||||||
likes: {},
|
|
||||||
flags: {},
|
|
||||||
flagCount: 0,
|
|
||||||
};
|
|
||||||
|
|
||||||
cron({user, tasksByType, daysMissed, analytics});
|
|
||||||
|
|
||||||
expect(user.inbox.messages[messageId]).to.not.exist;
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('login incentives', () => {
|
describe('login incentives', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user