stable

Clone or download

Read-only

Do not rely on current time in tests

This can produce flaky tests such as: https://ci.tuleap.org/jenkins/job/tuleap-gerrit-tests/24367/testReport/junit/(root)/relative-date-formatter%20Displays%20X%20minutes%20ago/Tests___Jest___relative_date_formatter_Displays_X_minutes_ago/ Part of story #14828: display dates with both absolute and relative dates Change-Id: Ie1fdfe0965083564136271e307e91382355be6c4

Modified Files

Name
M src/themes/tlp/src/js/custom-elements/relative-date/relative-date-element.ts +2 −2 Go to diff View file
M src/themes/tlp/src/js/custom-elements/relative-date/relative-date-formatter.test.ts +25 −17 Go to diff View file
M src/themes/tlp/src/js/custom-elements/relative-date/relative-date-formatter.ts +6 −2 Go to diff View file