Skip to content

Commit

Permalink
Add the year to the test as it is longer in past than last week
Browse files Browse the repository at this point in the history
  • Loading branch information
mountiny committed Nov 21, 2022
1 parent 3528ad5 commit 902ee41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/DateUtilsTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('DateUtils', () => {
expect(DateUtils.datetimeToCalendarTime(LOCALE, yesterday)).toBe('Yesterday at 7:43 AM');

const date = moment.utc('2022-11-05').set({hour: 10, minute: 17});
expect(DateUtils.datetimeToCalendarTime(LOCALE, date)).toBe('Nov 5 at 10:17 AM');
expect(DateUtils.datetimeToCalendarTime(LOCALE, date)).toBe('Nov 5, 2022 at 10:17 AM');
});

it('should return the date in calendar time when calling datetimeToRelative', () => {
Expand Down

0 comments on commit 902ee41

Please sign in to comment.