Skip to content

Commit

Permalink
Merge pull request Expensify#12884 from Expensify/vit-fixDateUtilsTest
Browse files Browse the repository at this point in the history
[NoQA] Add the year to the test as it is longer in past than last week
  • Loading branch information
cristipaval authored Nov 21, 2022
2 parents 17b14f6 + 902ee41 commit 52e3af0
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 52e3af0

Please sign in to comment.