Real-Dev-Squad / website-status

Shows a roadmap of the ongoing projects being done
https://status.realdevsquad.com/
MIT License
21 stars 145 forks source link

Add Tests for `convertTimeStamp` Function #1132

Open Achintya-Chatterjee opened 3 months ago

Achintya-Chatterjee commented 3 months ago

Issue Description

Write tests for the convertTimeStamp helper function to ensure its correctness and reliability.

Expected Behavior

After writing tests for the convertTimeStamp function, we expect to have a suite of tests that validate its behaviour under various scenarios, including different timestamps and edge cases. These tests should cover both the date and time formatting aspects of the function.

Current Behavior

Currently, the convertTimeStamp function lacks test coverage, leaving its behaviour unverified. This could potentially lead to unexpected issues or regressions if changes are made to the function in the future.

Screenshots

Reproducibility

Steps to Reproduce

Severity/Priority

Additional Information

Checklist