Merge pull request #885 from InseeFrLab:remove-moment #1102
Annotations
4 errors
src/ui/shared/formattedDate/getFormattedDate.test.ts > getFormattedDate > formats date within the same year:
src/ui/shared/formattedDate/getFormattedDate.test.ts#L9
AssertionError: expected 'Saturday, June 15 at 2:20 PM' to be 'Saturday, June 15 at 3:20 PM' // Object.is equality
Expected: "Saturday, June 15 at 3:20 PM"
Received: "Saturday, June 15 at 2:20 PM"
❯ src/ui/shared/formattedDate/getFormattedDate.test.ts:9:31
|
src/ui/shared/formattedDate/getFormattedDate.test.ts > getFormattedDate > formats date in a different year:
src/ui/shared/formattedDate/getFormattedDate.test.ts#L16
AssertionError: expected 'Saturday, November 25, 2023 at 2:20 PM' to be 'Saturday, November 25, 2023 at 3:20 PM' // Object.is equality
Expected: "Saturday, November 25, 2023 at 3:20 PM"
Received: "Saturday, November 25, 2023 at 2:20 PM"
❯ src/ui/shared/formattedDate/getFormattedDate.test.ts:16:31
|
src/ui/shared/formattedDate/getFormattedDate.test.ts > getFormattedDate > respects localization (fr):
src/ui/shared/formattedDate/getFormattedDate.test.ts#L25
AssertionError: expected 'lundi 25 novembre à 14:20' to be 'lundi 25 novembre à 15:20' // Object.is equality
Expected: "lundi 25 novembre à 15:20"
Received: "lundi 25 novembre à 14:20"
❯ src/ui/shared/formattedDate/getFormattedDate.test.ts:25:31
|
test_web
Process completed with exit code 1.
|