Restore the "gets expected character types" test, in test/unit/pdf_find_utils_spec.js, to its intended formatting

This was "broken" by the introduction of Prettier, however a recent update (version `2.1.x`) will now correctly ignore these escape sequences.
This commit is contained in:
Jonas Jenwald 2020-09-06 12:15:37 +02:00
parent 54eeaba014
commit 60c9556b66

View File

@ -23,26 +23,26 @@ describe("pdf_find_utils", function () {
a: CharacterType.ALPHA_LETTER,
"0": CharacterType.ALPHA_LETTER,
"5": CharacterType.ALPHA_LETTER,
Ä: CharacterType.ALPHA_LETTER, // 'Ä'
ä: CharacterType.ALPHA_LETTER, // 'ä'
"\xC4": CharacterType.ALPHA_LETTER, // "Ä"
"\xE4": CharacterType.ALPHA_LETTER, // "ä"
_: CharacterType.ALPHA_LETTER,
" ": CharacterType.SPACE,
"\t": CharacterType.SPACE,
"\r": CharacterType.SPACE,
"\n": CharacterType.SPACE,
"\xA0": CharacterType.SPACE,
"\xA0": CharacterType.SPACE, // nbsp
"-": CharacterType.PUNCT,
",": CharacterType.PUNCT,
".": CharacterType.PUNCT,
";": CharacterType.PUNCT,
":": CharacterType.PUNCT,
"\u2122": CharacterType.ALPHA_LETTER, // trademark
: CharacterType.THAI_LETTER,
䀀: CharacterType.HAN_LETTER,
: CharacterType.HAN_LETTER,
: CharacterType.KATAKANA_LETTER,
: CharacterType.HIRAGANA_LETTER,
: CharacterType.HALFWIDTH_KATAKANA_LETTER,
"\u0E25": CharacterType.THAI_LETTER,
"\u4000": CharacterType.HAN_LETTER,
"\uF950": CharacterType.HAN_LETTER,
"\u30C0": CharacterType.KATAKANA_LETTER,
"\u3050": CharacterType.HIRAGANA_LETTER,
"\uFF80": CharacterType.HALFWIDTH_KATAKANA_LETTER,
};
for (const character in characters) {