From 57cc8dff2e5723b8468c2f1fa1020ac2a9144022 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 22 Apr 2014 11:05:42 +0100 Subject: Rename styleName to the more accurate styleId --- tests/docx/document-xml-reader.tests.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/docx/document-xml-reader.tests.js') diff --git a/tests/docx/document-xml-reader.tests.js b/tests/docx/document-xml-reader.tests.js index 7cdbefc..714134e 100644 --- a/tests/docx/document-xml-reader.tests.js +++ b/tests/docx/document-xml-reader.tests.js @@ -30,7 +30,7 @@ describe("readXmlElement: ", function() { test("paragraph has no style if it has no properties", function() { var paragraphXml = new XmlElement("w:p", {}, []); var paragraph = readXmlElementValue(paragraphXml); - assert.deepEqual(paragraph.styleName, null); + assert.deepEqual(paragraph.styleId, null); }); test("paragraph has style name read from paragraph properties if present", function() { @@ -38,7 +38,7 @@ describe("readXmlElement: ", function() { var propertiesXml = new XmlElement("w:pPr", {}, [styleXml]); var paragraphXml = new XmlElement("w:p", {}, [propertiesXml]); var paragraph = readXmlElementValue(paragraphXml); - assert.deepEqual(paragraph.styleName, "Heading1"); + assert.deepEqual(paragraph.styleId, "Heading1"); }); test("paragraph has justification read from paragraph properties if present", function() { @@ -72,14 +72,14 @@ describe("readXmlElement: ", function() { test("run has no style if it has no properties", function() { var runXml = runWithProperties([]); var run = readXmlElementValue(runXml); - assert.deepEqual(run.styleName, null); + assert.deepEqual(run.styleId, null); }); test("run has style name read from run properties if present", function() { var runStyleXml = new XmlElement("w:rStyle", {"w:val": "Emphasis"}); var runXml = runWithProperties([runStyleXml]); var run = readXmlElementValue(runXml); - assert.deepEqual(run.styleName, "Emphasis"); + assert.deepEqual(run.styleId, "Emphasis"); }); test("isBold is false if bold element is not present", function() { -- cgit v1.2.3