We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3ffb11 commit 05a3e8bCopy full SHA for 05a3e8b
test/relative-time.js
@@ -59,6 +59,7 @@ suite('relative-time', function () {
59
})
60
61
test('updates the time automatically when it is a few seconds ago', async function () {
62
+ // eslint-disable-next-line @typescript-eslint/no-invalid-this
63
this.timeout(3000)
64
const el = document.createElement('relative-time')
65
el.setAttribute('datetime', new Date(Date.now() + 25000).toISOString())
@@ -67,7 +68,6 @@ suite('relative-time', function () {
67
68
await new Promise(resolve => setTimeout(resolve, 2000))
69
const nextDisplay = el.shadowRoot.textContent || el.textContent
70
assert.match(nextDisplay, /in \d+ seconds/)
- console.log(nextDisplay, display)
71
assert.notEqual(nextDisplay, display)
72
73
0 commit comments