Skip to content

Commit

Permalink
add test and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
wxiaoguang committed Dec 5, 2024
1 parent 5721bcc commit fc858c3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/relative-time.js
Original file line number Diff line number Diff line change
Expand Up @@ -2498,6 +2498,13 @@ suite('relative-time', function () {
format: 'auto',
expected: '4 years ago',
},
{
reference: '2024-12-04T00:00:00.000Z',
datetime: '2024-01-16T00:00:00.000Z',
tense: 'past',
format: 'auto',
expected: 'last year', // a quick fix for the old bug: "23 days ago" because "11 months" was discarded, ideally it should support "11 months"
},
])

for (const {
Expand Down

0 comments on commit fc858c3

Please sign in to comment.