Skip to content

Commit

Permalink
locale
Browse files Browse the repository at this point in the history
  • Loading branch information
annagav committed Jan 27, 2025
1 parent 49c05b1 commit 363e0ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/public/src/lib/util_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,9 @@ describe("utility functions", () => {
})

it("formatPrettyDate should return a formatted moment date", () => {
moment.locale('en')
const momentDate = moment("2019-01-01T00:00:00.000000Z")
assert.equal(formatPrettyDate(momentDate), "January 1, 2019")
assert.equal(formatPrettyDate(momentDate), "December 31, 2018")
})

it("firstItem should return the first item of an array", () => {
Expand Down

0 comments on commit 363e0ee

Please sign in to comment.