aboutsummaryrefslogtreecommitdiff
path: root/test/document-util.test.js
diff options
context:
space:
mode:
authorJames Maa <jmaa@berkeley.edu>2024-05-31 08:06:52 -0700
committerGitHub <noreply@github.com>2024-05-31 15:06:52 +0000
commit76ca08bd59f0e8bfa1bb20ac813f48e7ab241265 (patch)
treebdba43d9ba704885383c7f308c6fe3f574c647c5 /test/document-util.test.js
parentb3f54747eb2694bdc90bce72e5532e99d374ef08 (diff)
Allow trailing commas in ESLint (#1013)
* Update comma-dangle rule * Fix dangling commas
Diffstat (limited to 'test/document-util.test.js')
-rw-r--r--test/document-util.test.js12
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} */