aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/docx/body-reader.tests.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/docx/body-reader.tests.js b/test/docx/body-reader.tests.js
index bbc3499..8dc9ab5 100644
--- a/test/docx/body-reader.tests.js
+++ b/test/docx/body-reader.tests.js
@@ -262,6 +262,11 @@ test("content of deleted paragraph is prepended to next paragraph", function() {
new XmlElement("w:pStyle", {"w:val": "Heading2"}, [])
]),
runOfText("Two")
+ ]),
+ // Include a second paragraph that isn't deleted to ensure we only add
+ // the deleted paragraph contents once.
+ new XmlElement("w:p", {}, [
+ runOfText("Three")
])
];
@@ -275,6 +280,12 @@ test("content of deleted paragraph is prepended to next paragraph", function() {
documents.run([documents.text("One")]),
documents.run([documents.text("Two")])
)
+ }),
+ hasProperties({
+ type: documents.types.paragraph,
+ children: contains(
+ documents.run([documents.text("Three")])
+ )
})
));