From 4b4ec85bc4f49e72244f7219539124b45b876d8e Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 12 Aug 2015 21:57:45 +0100 Subject: Open zip file before passing to readers --- tests/mammoth.tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/mammoth.tests.js') diff --git a/tests/mammoth.tests.js b/tests/mammoth.tests.js index 41a3a22..6fdd60f 100644 --- a/tests/mammoth.tests.js +++ b/tests/mammoth.tests.js @@ -84,7 +84,7 @@ describe('mammoth', 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, styleMap: "p => h1"}); + return mammoth.writeStyleMapToDocx({buffer: buffer}, "p => h1"); }) .then(function(docx) { return mammoth.convertToHtml({buffer: docx.toBuffer()}); -- cgit v1.2.3