-
Notifications
You must be signed in to change notification settings - Fork 103
bug: historicalDataService.test.js Fails on Unsorted Data #559
Copy link
Copy link
Open
Labels
ECSoC26Contributions considered under ECSoC'26Contributions considered under ECSoC'26
Description
Aditya8369
opened on Aug 4, 2026
Issue body actions
- Description: The test formats daily entries into chronologically ordered CSV... in historicalDataService.test.js implicitly relies on the formatHistoricalCSV function to sort the data. However, the test provides data that is already out of order, and the assertion checks for a specific sorted order. If the function doesn't sort, this test will fail, indicating a fragile test or a missing feature in the function.
- Fix/Enhancement: The formatHistoricalCSV function should internally sort the data by date before creating the CSV string to guarantee chronological order, regardless of the input order.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ECSoC26Contributions considered under ECSoC'26Contributions considered under ECSoC'26