aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/docx/body-reader.tests.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/docx/body-reader.tests.js b/test/docx/body-reader.tests.js
index 48f6b16..50506ae 100644
--- a/test/docx/body-reader.tests.js
+++ b/test/docx/body-reader.tests.js
@@ -459,6 +459,13 @@ test("isUnderline is true if underline element is present", function() {
assert.equal(run.isUnderline, true);
});
+test("isUnderline is false if underline element is 'none'", function() {
+ var underlineXml = new XmlElement("w:u", {"w:val": "none"});
+ var runXml = runWithProperties([underlineXml]);
+ var run = readXmlElementValue(runXml);
+ assert.equal(run.isUnderline, false);
+});
+
test("isStrikethrough is false if strikethrough element is not present", function() {
var runXml = runWithProperties([]);
var run = readXmlElementValue(runXml);