Merged in fix/LOY-597-upcoming-today (pull request #3517)
fix(LOY-597): Display "Today" for upcoming stay today * fix(LOY-597): Display "Today" for upcoming stay today Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -212,6 +212,12 @@ describe("getTimeAgoText", () => {
|
||||
|
||||
expect(result).toBe("")
|
||||
})
|
||||
it("should return Today for todays date", () => {
|
||||
const todaysDate = dt().format("YYYY-MM-DD")
|
||||
const result = getTimeAgoText(todaysDate, mockIntl)
|
||||
|
||||
expect(result).toBe("Today")
|
||||
})
|
||||
})
|
||||
|
||||
describe("boundary transitions", () => {
|
||||
|
||||
Reference in New Issue
Block a user