diff options
| -rw-r--r-- | tests/docx/style-map.tests.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/docx/style-map.tests.js b/tests/docx/style-map.tests.js index 0c8ef23..55171f8 100644 --- a/tests/docx/style-map.tests.js +++ b/tests/docx/style-map.tests.js @@ -7,6 +7,14 @@ var styleMap = require("../../lib/docx/style-map"); var test = require("../testing").test; describe("style-map", function() { + test('reading embedded style map on document without embedded style map returns null', function() { + var zip = normalDocx(); + + return styleMap.readStyleMap(zip).then(function(contents) { + assert.equal(contents, null); + }); + }); + test('embedded style map can be read after being written', function() { var zip = normalDocx(); |
