From 32a0df4883d17ea9e8f3871f2785c2916416c3b3 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sun, 24 Jan 2021 03:31:45 -0500 Subject: [PATCH] tests: Fix invalid HTML in contentcollector tests The HTML spec does not permit `
` as a child of `

`. --- tests/backend/specs/contentcollector.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/backend/specs/contentcollector.js b/tests/backend/specs/contentcollector.js index 04970d74d..81ac08ed6 100644 --- a/tests/backend/specs/contentcollector.js +++ b/tests/backend/specs/contentcollector.js @@ -221,11 +221,11 @@ const tests = { multiLineParagraphWithPre: { description: 'lines in preformatted text should be kept intact', html: `

-а б в г ґ д е є ж з и і ї й к л м н о

multiple
+а б в г ґ д е є ж з и і ї й к л м н о

multiple
 lines
 in
 pre
-

п р с т у ф х ц ч ш щ ю я +

п р с т у ф х ц ч ш щ ю я ь

`, expectedLineAttribs: ['+11', '+8', '+5', '+2', '+3', '+r'], @@ -242,8 +242,8 @@ pre description: 'pre should be on a new line not preceeded by a space', html: `

1 -

preline
-

`, +

preline
+
`, expectedLineAttribs: ['+6', '+7'], expectedText: [' 1 ', 'preline'], },