Description: The test for formatHistoricalCSV uses a small, ideal mock data array. It does not cover edge cases like unsorted input, empty arrays, or data with missing pollutant values.
Proposed Enhancement: Add more test cases to cover unsorted input data, empty arrays, and data with null or missing values to ensure the formatting function is robust and reliable.
Description: The test for formatHistoricalCSV uses a small, ideal mock data array. It does not cover edge cases like unsorted input, empty arrays, or data with missing pollutant values.
Proposed Enhancement: Add more test cases to cover unsorted input data, empty arrays, and data with null or missing values to ensure the formatting function is robust and reliable.