Ignore secondary symptom peak after end of temperature evaluation
This commit is contained in:
@@ -105,30 +105,6 @@ describe('sympto', () => {
|
||||
}
|
||||
})
|
||||
})
|
||||
it('when the cervix shift is happening after tempEvalEnd', () => {
|
||||
const values = [1,1,1,1,1,2,3,3,3,3,1,1,1,1,0,0,0,0,0,0,0]
|
||||
.map(turnIntoCycleDayObject)
|
||||
const status = getCervixStatus(values, 10)
|
||||
expect(status).to.eql({
|
||||
detected: true,
|
||||
cervixPeakBeforeShift: {
|
||||
date: 13,
|
||||
cervix: {
|
||||
opening: 1,
|
||||
firmness: 0,
|
||||
exclude: false
|
||||
}
|
||||
},
|
||||
evaluationCompleteDay: {
|
||||
date: 16,
|
||||
cervix: {
|
||||
opening: 0,
|
||||
firmness: 0,
|
||||
exclude: false
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('detects no cervix shift', () => {
|
||||
@@ -144,6 +120,12 @@ describe('sympto', () => {
|
||||
const status = getCervixStatus(values, 17)
|
||||
expect(status).to.eql({ detected: false })
|
||||
})
|
||||
it('when the cervix shift is happening after tempEvalEnd', () => {
|
||||
const values = [1,1,1,1,1,2,3,3,3,3,1,1,1,1,0,0,0,0,0,0,0]
|
||||
.map(turnIntoCycleDayObject)
|
||||
const status = getCervixStatus(values, 10)
|
||||
expect(status).to.eql({ detected: false })
|
||||
})
|
||||
it('if no days indicate fertile cervix which could be cervix peak', () => {
|
||||
const values = [1, 3, 2, 1, 3, 2, 1, 3, 2, 1, 3, 2, 1, 3, 2, 1]
|
||||
.map(turnIntoCycleDayObject)
|
||||
|
||||
Reference in New Issue
Block a user