From 284be64be74acd72df87fcda4b588a6d3ed59723 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 3 Apr 2017 10:16:08 +0100 Subject: Add test for default font value --- test/docx/body-reader.tests.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') 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]); -- cgit v1.2.3