Skip to content

Commit

Permalink
Test: fix format date
Browse files Browse the repository at this point in the history
  • Loading branch information
robisim74 committed Aug 30, 2022
1 parent 925de69 commit 7a0cbe2
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/tests/format-date.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,5 @@ describe('formatDate function', () => {
expect(fd(value, {}, locale)).toBe('7/19/2022');
expect(fd(value, { dateStyle: 'full' }, locale)).toBe('Tuesday, July 19, 2022');
expect(fd(value, { dateStyle: 'full', timeStyle: 'short' }, locale)).toBe('Tuesday, July 19, 2022 at 9:30 AM');
expect(fd(value, {
weekday: 'long',
year: 'numeric',
month: 'long',
day: 'numeric',
hour: 'numeric',
minute: 'numeric'
}, locale)).toBe('Tuesday, July 19, 2022, 9:30 AM');
});
});

0 comments on commit 7a0cbe2

Please sign in to comment.