fix cron tests

This commit is contained in:
Matteo Pagliazzi
2016-05-25 21:01:12 +02:00
parent ed815d4947
commit f9762f4f81
3 changed files with 103 additions and 91 deletions

View File

@@ -34,15 +34,6 @@ describe('cron', () => {
};
});
it('updates user.auth.timestamps.loggedin and lastCron', () => {
let now = new Date();
cron({user, tasksByType, daysMissed, analytics, now});
expect(user.auth.timestamps.loggedin).to.equal(now);
expect(user.lastCron).to.equal(now);
});
it('updates user.preferences.timezoneOffsetAtLastCron', () => {
let timezoneOffsetFromUserPrefs = 1;