Fix tests

This commit is contained in:
Pieter Vander Vennet 2025-06-03 21:24:29 +02:00
parent 469165c6ff
commit bad4a3514c

View file

@ -975,7 +975,7 @@ changes // => [[36000,61200], ["10:00", "17:00"]]
* @param changeHourText
* @param maxDiff minimum required seconds between two items to be in the same group
*
* OH.partitionOHForDistance([0, 15, 3615], ["start", "15s", "1h15s"]) // => [{changeHours: [0, 3615], changeTexts: ["start", "1h15s"]}, {changeHours: [15], changeTexts: ["15 seconds"]}}]
* OH.partitionOHForDistance([0, 15, 3615], ["start", "15s", "1h15s"]) // => [{changeHours: [0, 3615], changeTexts: ["start", "1h15s"]}, {changeHours: [15], changeTexts: ["15 seconds"]}]
*
*/
public static partitionOHForDistance(changeHours: number[], changeHourText: string[], maxDiff = 3600): {