aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 e66bd5e..c3d5556 100644
--- a/test/docx/body-reader.tests.js
+++ b/test/docx/body-reader.tests.js
@@ -453,6 +453,13 @@ test("run has vertical alignment read from properties", function() {
assert.deepEqual(run.verticalAlignment, documents.verticalAlignment.superscript);
});
+test("run has null font by default", function() {
+ var runXml = runWithProperties([]);
+
+ var run = readXmlElementValue(runXml);
+ assert.deepEqual(run.font, null);
+});
+
test("run has font read from properties", function() {
var fontXml = new XmlElement("w:rFonts", {"w:ascii": "Arial"});
var runXml = runWithProperties([fontXml]);