aboutsummaryrefslogtreecommitdiff
path: root/tests/mammoth.tests.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-08-12 21:57:45 +0100
committerMichael Williamson <mike@zwobble.org>2015-08-12 21:57:45 +0100
commit4b4ec85bc4f49e72244f7219539124b45b876d8e (patch)
tree0aa4c2005526fa5130bccbfd26f3a9cab6f8d4cb /tests/mammoth.tests.js
parent5f5217a4e16f7be697b24a46cf58e47753967d95 (diff)
Open zip file before passing to readers
Diffstat (limited to 'tests/mammoth.tests.js')
-rw-r--r--tests/mammoth.tests.js2
1 files changed, 1 insertions, 1 deletions
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()});