aboutsummaryrefslogtreecommitdiff
path: root/test/document-util.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/document-util.test.js')
-rw-r--r--test/document-util.test.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/document-util.test.js b/test/document-util.test.js
index c2b2edca..0f541e12 100644
--- a/test/document-util.test.js
+++ b/test/document-util.test.js
@@ -206,12 +206,15 @@ describe('Document utility tests', () => {
// Sentence info
const terminatorString = '…。..??!!';
+ /** @type {import('text-scanner').SentenceTerminatorMap} */
const terminatorMap = new Map();
for (const char of terminatorString) {
terminatorMap.set(char, [false, true]);
}
const quoteArray = [['「', '」'], ['『', '』'], ['\'', '\''], ['"', '"']];
+ /** @type {import('text-scanner').SentenceForwardQuoteMap} */
const forwardQuoteMap = new Map();
+ /** @type {import('text-scanner').SentenceBackwardQuoteMap} */
const backwardQuoteMap = new Map();
for (const [char1, char2] of quoteArray) {
forwardQuoteMap.set(char1, [char2, false]);