mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Fixed linting issues
This commit is contained in:
@@ -786,7 +786,7 @@ describe('cron', () => {
|
||||
cron({user, tasksByType, daysMissed, analytics});
|
||||
|
||||
let filteredNotifications = filter(user.notifications, function filterNotifications (notification) {
|
||||
return notification.type === 'LOGIN_INCENTIVE';
|
||||
return notification.type === 'LOGIN_INCENTIVE';
|
||||
});
|
||||
|
||||
expect(filteredNotifications.length).to.equal(1);
|
||||
|
||||
@@ -131,7 +131,7 @@ function trackCronAnalytics (analytics, user, _progress, options) {
|
||||
function awardLoginIncentives (user) {
|
||||
if (user.loginIncentives > 50) return;
|
||||
|
||||
//Remove old noitification if it exists
|
||||
// Remove old noitification if it exists
|
||||
user.notifications
|
||||
.toObject()
|
||||
.find((notif, index) => {
|
||||
|
||||
Reference in New Issue
Block a user