Skip to content

Commit fc858c3

Browse files
committed
add test and comment
1 parent 5721bcc commit fc858c3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/relative-time.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2498,6 +2498,13 @@ suite('relative-time', function () {
24982498
format: 'auto',
24992499
expected: '4 years ago',
25002500
},
2501+
{
2502+
reference: '2024-12-04T00:00:00.000Z',
2503+
datetime: '2024-01-16T00:00:00.000Z',
2504+
tense: 'past',
2505+
format: 'auto',
2506+
expected: 'last year', // a quick fix for the old bug: "23 days ago" because "11 months" was discarded, ideally it should support "11 months"
2507+
},
25012508
])
25022509

25032510
for (const {

0 commit comments

Comments
 (0)