Improving cervix:
* adding tempEvalEnd value to cervix tests * more comments in code for cervix sympto * better description in cervix temp tests * take out cervix.value
This commit is contained in:
+4
-4
@@ -115,10 +115,10 @@ function throwIfArgsAreNotInRequiredFormat(cycles) {
|
||||
if (day.mucus) assert.equal(typeof day.mucus.value, 'number', "Mucus value must be a number.")
|
||||
if (day.mucus) assert.ok(day.mucus.value >= 0, "Mucus value must greater or equal to 0.")
|
||||
if (day.mucus) assert.ok(day.mucus.value <= 4, "Mucus value must be below 5.")
|
||||
if (day.cervix) assert.ok(day.cervix.value.opening >= 0, "Cervix opening value must be 0 or bigger")
|
||||
if (day.cervix) assert.ok(day.cervix.value.opening <= 2, "Cervix opening value must be 2 or smaller")
|
||||
if (day.cervix) assert.ok(day.cervix.value.firmness >= 0, "Cervix firmness value must be 0 or bigger")
|
||||
if (day.cervix) assert.ok(day.cervix.value.firmness <= 1, "Cervix firmness value must be 1 or smaller")
|
||||
if (day.cervix) assert.ok(day.cervix.opening >= 0, "Cervix opening value must be 0 or bigger")
|
||||
if (day.cervix) assert.ok(day.cervix.opening <= 2, "Cervix opening value must be 2 or smaller")
|
||||
if (day.cervix) assert.ok(day.cervix.firmness >= 0, "Cervix firmness value must be 0 or bigger")
|
||||
if (day.cervix) assert.ok(day.cervix.firmness <= 1, "Cervix firmness value must be 1 or smaller")
|
||||
assert.equal(typeof cycle[0].bleeding.value, 'number', "Bleeding value must be a number")
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user