diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/mammoth.tests.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mammoth.tests.js b/tests/mammoth.tests.js index 801bb02..ad71539 100644 --- a/tests/mammoth.tests.js +++ b/tests/mammoth.tests.js @@ -1,6 +1,7 @@ var assert = require("assert"); var path = require("path"); var fs = require("fs"); +var _ = require("underscore"); var mammoth = require("../"); var promises = require("../lib/promises"); @@ -156,8 +157,7 @@ describe('mammoth', function() { }); var options = { transformDocument: mammoth.transforms.paragraph(function(paragraph) { - paragraph.styleId = "Heading1"; - return paragraph; + return _.extend(paragraph, {styleId: "Heading1"}); }) }; return mammoth.convertToHtml({file: docxFile}, options).then(function(result) { |
