Fixed broken tests

This commit is contained in:
Keith Holliday
2017-05-20 17:19:35 -06:00
parent 99a2013767
commit c08c0685f3
4 changed files with 20 additions and 8 deletions

View File

@@ -371,7 +371,7 @@ describe('cron', () => {
tasksByType.dailys[0].everyX = 5;
tasksByType.dailys[0].startDate = moment().add(1, 'days').toDate();
cron({user, tasksByType, daysMissed, analytics});
expect(tasksByType.dailys[0].nextDue.length).to.eql(3);
expect(tasksByType.dailys[0].nextDue.length).to.eql(6);
});
it('should add history', () => {