Make mac cycle length test more meaningful

This commit is contained in:
Julia Friesel
2019-01-04 18:59:28 +01:00
parent 8d7fa268de
commit c47e453882
2 changed files with 6 additions and 3 deletions
+6 -2
View File
@@ -473,10 +473,14 @@ describe('getCyclesBefore', () => {
cycleStartsSortedByDate: cycleDaysSortedByDate.filter(d => {
return cycleStarts.includes(d.date)
}),
maxCycleLength: 2
maxCycleLength: 30
})
const result = getCyclesBefore(cycleDaysSortedByDate[0])
expect(result.length).to.eql(0)
expect(result.length).to.eql(1)
expect(result).to.eql([[{
bleeding: { value: 2 },
date: "2018-06-05"
}]])
})
})