diff options
Diffstat (limited to 'test/document-util.test.js')
-rw-r--r-- | test/document-util.test.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/document-util.test.js b/test/document-util.test.js index 0f541e12..8add2b97 100644 --- a/test/document-util.test.js +++ b/test/document-util.test.js @@ -135,7 +135,7 @@ describe('Document utility tests', () => { sentenceScanExtent, sentence, hasImposter, - terminateAtNewlines + terminateAtNewlines, } = parseJson(/** @type {string} */ (testElement.dataset.testData)); const elementFromPointValue = querySelectorChildOrSelf(testElement, elementFromPointSelector); @@ -174,8 +174,8 @@ describe('Document utility tests', () => { * @param {number} index * @returns {DOMRect} */ - item: function item(index) { return this[index]; } - } + item: function item(index) { return this[index]; }, + }, ); return domRectList; }; @@ -186,7 +186,7 @@ describe('Document utility tests', () => { const textSourceGenerator = new TextSourceGenerator(); const source = textSourceGenerator.getRangeFromPoint(0, 0, { deepContentScan: false, - normalizeCssZoom: true + normalizeCssZoom: true, }); switch (resultType) { case 'TextSourceRange': @@ -229,7 +229,7 @@ describe('Document utility tests', () => { terminateAtNewlines2, terminatorMap, forwardQuoteMap, - backwardQuoteMap + backwardQuoteMap, ).text; expect(sentenceActual).toStrictEqual(sentence); @@ -257,7 +257,7 @@ describe('Document utility tests', () => { expectedResultNodeSelector, expectedResultNodeIsText, expectedResultOffset, - expectedResultContent + expectedResultContent, } = parseJson(/** @type {string} */ (testElement.dataset.testData)); /** @type {?Node} */ |