aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/docx/body-reader.tests.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/docx/body-reader.tests.js b/test/docx/body-reader.tests.js
index f866e9b..4632e3b 100644
--- a/test/docx/body-reader.tests.js
+++ b/test/docx/body-reader.tests.js
@@ -955,6 +955,15 @@ test("w:hyperlink", {
var result = readXmlElementValue(hyperlinkXml);
assertThat(result, hasProperties({targetFrame: "_blank"}));
},
+
+ "empty target frame is ignored": function() {
+ var hyperlinkXml = new XmlElement("w:hyperlink", {
+ "w:anchor": "Introduction",
+ "w:tgtFrame": ""
+ });
+ var result = readXmlElementValue(hyperlinkXml);
+ assertThat(result, hasProperties({targetFrame: null}));
+ }
});
test("w:br without explicit type is read as line break", function() {