Change function signature and remove fixtures

This commit is contained in:
Julia Friesel
2018-06-30 16:13:05 +02:00
parent e1f473de3b
commit d1f2922357
7 changed files with 15 additions and 303 deletions
+4 -5
View File
@@ -1,7 +1,6 @@
function getTemperatureStatus(targetDateString, previousDaysInCycle) {
const tempValues = previousDaysInCycle
.filter(day => day.temperature)
.map(day => !day.temperature.exclude && rounded(day.temperature.value, 0.05))
function detectTemperatureShift(temperaturesOfCycle) {
// sensiplan rounds temps to the nearest 0.05
const tempValues = temperaturesOfCycle.map(val => rounded(val, 0.05))
let detectingPotentialHighLevel = false
@@ -49,5 +48,5 @@ function rounded(val, step) {
}
export {
getTemperatureStatus
detectTemperatureShift
}