Throw if args are wrong

This commit is contained in:
Julia Friesel
2018-07-10 16:37:38 +02:00
parent 81b7b46b23
commit d027c6e9c4
3 changed files with 119 additions and 39 deletions
+2
View File
@@ -10,10 +10,12 @@ function convertToSymptoFormat(val) {
const cycleWithTempShift = [36.6, 36.6, 36.6, 36.6, 36.6, 36.6, 36.8, 36.8, 36.8]
.map(num => ({ date: '2018-06-01', temperature: num }))
.map(convertToSymptoFormat)
cycleWithTempShift.unshift({date: '2018-05-30', bleeding: { value: 2 }})
const cycleWithoutTempShift = [36.6, 36.6, 36.6, 36.6, 36.6, 36.6, 36.8, 36.8]
.map(num => ({ date: '2018-06-01', temperature: num }))
.map(convertToSymptoFormat)
cycleWithoutTempShift.unshift({date: '2018-05-30', bleeding: { value: 2 }})
const cycleWithTempAndMucusShift = [
{ date: '2018-06-01', temperature: 36.6, bleeding: 2 },