Fixed linting issues

This commit is contained in:
Keith Holliday
2016-11-28 21:24:25 -06:00
parent f4cf906127
commit 1d2482f8bc
2 changed files with 2 additions and 2 deletions

View File

@@ -786,7 +786,7 @@ describe('cron', () => {
cron({user, tasksByType, daysMissed, analytics}); cron({user, tasksByType, daysMissed, analytics});
let filteredNotifications = filter(user.notifications, function filterNotifications (notification) { let filteredNotifications = filter(user.notifications, function filterNotifications (notification) {
return notification.type === 'LOGIN_INCENTIVE'; return notification.type === 'LOGIN_INCENTIVE';
}); });
expect(filteredNotifications.length).to.equal(1); expect(filteredNotifications.length).to.equal(1);

View File

@@ -131,7 +131,7 @@ function trackCronAnalytics (analytics, user, _progress, options) {
function awardLoginIncentives (user) { function awardLoginIncentives (user) {
if (user.loginIncentives > 50) return; if (user.loginIncentives > 50) return;
//Remove old noitification if it exists // Remove old noitification if it exists
user.notifications user.notifications
.toObject() .toObject()
.find((notif, index) => { .find((notif, index) => {