aboutsummaryrefslogtreecommitdiff
path: root/tests/mammoth.tests.js
diff options
context:
space:
mode:
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()});