Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Nov 7, 2022
1 parent a3ffb11 commit 05a3e8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/relative-time.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ suite('relative-time', function () {
})

test('updates the time automatically when it is a few seconds ago', async function () {
// eslint-disable-next-line @typescript-eslint/no-invalid-this
this.timeout(3000)
const el = document.createElement('relative-time')
el.setAttribute('datetime', new Date(Date.now() + 25000).toISOString())
Expand All @@ -67,7 +68,6 @@ suite('relative-time', function () {
await new Promise(resolve => setTimeout(resolve, 2000))
const nextDisplay = el.shadowRoot.textContent || el.textContent
assert.match(nextDisplay, /in \d+ seconds/)
console.log(nextDisplay, display)
assert.notEqual(nextDisplay, display)
})

Expand Down

0 comments on commit 05a3e8b

Please sign in to comment.