I have a time differences function that gets a date and calculates it differences with the current time and return time differences like:
4 days ago
Now, I used this function on a web page with some Unit test and Snapshot test. Snapshot testing will fail every day because tomorrow the differences will be 5 days ago
What can I do in this situation?
Aucun commentaire:
Enregistrer un commentaire