Split fixtures into temp & mucus and temp & cervix files

Add first blueprint for temp&cervix tests
This commit is contained in:
emelko
2018-07-30 14:42:00 +02:00
parent 4f3334bef7
commit 9e1393766a
4 changed files with 1247 additions and 1290 deletions
-8
View File
@@ -4,14 +4,6 @@ function convertToSymptoFormat(val) {
if (val.temperature) sympto.temperature = { value: val.temperature }
if (val.mucus) sympto.mucus = { value: val.mucus }
if (val.bleeding) sympto.bleeding = { value: val.bleeding }
if (val.cervix) {
sympto.cervix = {}
if (val.cervix === 'firm & closed') {
sympto.cervix.firmAndClosed = true
} else {
sympto.cervix.firmAndClosed = false
}
}
return sympto
}