aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/docx/style-map.tests.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/docx/style-map.tests.js b/tests/docx/style-map.tests.js
index a14ffb3..d120289 100644
--- a/tests/docx/style-map.tests.js
+++ b/tests/docx/style-map.tests.js
@@ -16,6 +16,16 @@ describe("zipfile", function() {
assert.equal(contents, "p => h1");
});
});
+
+ test('embedded style map is written to separate file', function() {
+ var zip = emptyZipFile();
+
+ styleMap.writeStyleMap(zip, "p => h1");
+
+ return zip.read("mammoth/style-map", "utf8").then(function(contents) {
+ assert.equal(contents, "p => h1");
+ });
+ });
});
function emptyZipFile() {