Skip to content

Commit 399248a

Browse files
committed
Run eslint --fix
1 parent 1217096 commit 399248a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

epubcfi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ const nodeToParts = (node, offset, filter) => {
262262
while (filter && parentNode
263263
&& parentNode !== node.ownerDocument.documentElement
264264
&& filter(parentNode) === NodeFilter.FILTER_SKIP)
265-
parentNode = parentNode.parentNode
265+
parentNode = parentNode.parentNode
266266
const indexed = indexChildNodes(parentNode, filter)
267267
const index = indexed.findIndex(x =>
268268
Array.isArray(x) ? x.some(x => x === node) : x === node)

tests/epubcfi-tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ const XHTML = str => parser.parseFromString(str, 'application/xhtml+xml')
164164
const filter = node => node.nodeType === 1 && node.classList?.contains('SKIP')
165165
? NodeFilter.FILTER_SKIP
166166
: NodeFilter.FILTER_ACCEPT
167-
167+
168168
// cfi1
169169
const para1 = page.getElementById('test-skip-1')
170170
const text1 = para1.firstChild
@@ -175,7 +175,7 @@ const XHTML = str => parser.parseFromString(str, 'application/xhtml+xml')
175175

176176
const expected1 = 'epubcfi(/4/2[test-skip-1],/1:3,/1:8)'
177177
console.assert(cfi1 === expected1, `expected ${expected1}, got ${cfi1}`)
178-
178+
179179

180180
// cfi2
181181
const para2 = page.getElementById('test-skip-2')

0 commit comments

Comments
 (0)