Skip to content

bug: historicalDataService.test.js Fails on Unsorted Data #559

Description

@Aditya8369
  • 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.

Metadata

Metadata

Labels

ECSoC26Contributions considered under ECSoC'26

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions