aboutsummaryrefslogtreecommitdiff
path: root/tests/docx/styles-reader.tests.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/docx/styles-reader.tests.js')
-rw-r--r--tests/docx/styles-reader.tests.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/docx/styles-reader.tests.js b/tests/docx/styles-reader.tests.js
index 6dfdcd2..2c07913 100644
--- a/tests/docx/styles-reader.tests.js
+++ b/tests/docx/styles-reader.tests.js
@@ -44,6 +44,15 @@ describe('readStylesXml', function() {
assert.equal(styles.findParagraphStyleById("Heading1Char"), null);
});
+ test('character and table styles are distinct', function() {
+ var styles = readStylesXml({
+ root: new XmlElement("w:styles", {}, [
+ styleElement("table", "Heading1", "Heading 1"),
+ ])
+ });
+ assert.equal(styles.findCharacterStyleById("Heading1"), null);
+ });
+
test('styles include names', function() {
var styles = readStylesXml({
root: new XmlElement("w:styles", {}, [