8000 ensure threshold date firmly reaches over 31 days for the month · github/relative-time-element@135eaec · GitHub
[go: up one dir, main page]

Skip to content

Commit 135eaec

Browse files
committed
ensure threshold date firmly reaches over 31 days for the month
1 parent f0f5e08 commit 135eaec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/relative-time.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ suite('relative-time', function () {
270270

271271
suite('[threshold]', function () {
272272
test('switches to dates after 30 past days with default threshold', async () => {
273-
const now = new Date(Date.now() - 31 * 60 * 60 * 24 * 1000).toISOString()
273+
const now = new Date(Date.now() - 32 * 60 * 60 * 24 * 1000).toISOString()
274274
const time = document.createElement('relative-time')
275275
time.setAttribute('lang', 'en-US')
276276
time.setAttribute('datetime', now)

0 commit comments

Comments
 (0)
0