Change function signature and remove fixtures
This commit is contained in:
+4
-5
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user