From 18459a297526a9067e7994ffff939a31d42bbc1d Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 16 Aug 2015 13:52:04 +0100 Subject: Refer to style maps in docx as embedded style maps --- tests/mammoth.tests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/mammoth.tests.js b/tests/mammoth.tests.js index 64439f1..10ba228 100644 --- a/tests/mammoth.tests.js +++ b/tests/mammoth.tests.js @@ -81,11 +81,11 @@ describe('mammoth', function() { }); }); - test('style map can be saved and read from document buffer', function() { + test('embedded style is used if present', function() { var docxPath = path.join(__dirname, "test-data/single-paragraph.docx"); return promises.nfcall(fs.readFile, docxPath) .then(function(buffer) { - return mammoth.writeStyleMapToDocx({buffer: buffer}, "p => h1"); + return mammoth.embedStyleMap({buffer: buffer}, "p => h1"); }) .then(function(docx) { return mammoth.convertToHtml({buffer: docx.toBuffer()}); -- cgit v1.2.3