Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ebc2e04

Browse files
committed
Fix ESLint issues after updating ESLint
1 parent 18bd2aa commit ebc2e04

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"root": true,
23
"extends": [
34
"plugin:github/browser",
45
"plugin:github/typescript"

test/test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -574,8 +574,8 @@ suite('include-fragment-element', function() {
574574
div.innerHTML = '<include-fragment loading="lazy" src="/slow-hello">loading</include-fragment>'
575575
div.hidden = true
576576
document.body.appendChild(div)
577-
let count = 0
578-
div.firstChild.addEventListener('loadstart', () => count += 1)
577+
let loadCount = 0
578+
div.firstChild.addEventListener('loadstart', () => loadCount += 1)
579579
const load = div.firstChild.load()
580580
setTimeout(() => {
581581
div.hidden = false
@@ -584,7 +584,7 @@ suite('include-fragment-element', function() {
584584
return load
585585
.then(() => when(div.firstChild, 'loadend'))
586586
.then(() => {
587-
assert.equal(count, 1, "Load occured too many times")
587+
assert.equal(loadCount, 1, "Load occured too many times")
588588
})
589589
})
590590
})

0 commit comments

Comments
 (0)