diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/main.tests.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/main.tests.js b/tests/main.tests.js index 5e8f436..01004a8 100644 --- a/tests/main.tests.js +++ b/tests/main.tests.js @@ -49,6 +49,17 @@ describe("CLI", function() { }); }); }); + + test("style map is used if set", function() { + return createTempDir().then(function(tempDir) { + var styleMapPath = path.join(tempDir, "style-map"); + fs.writeFileSync(styleMapPath, "p => span:fresh"); + return runMammoth(testPath("single-paragraph.docx"), "--style-map", styleMapPath).then(function(result) { + assert.equal(result.stderrOutput, "") + assert.equal(result.output, "<span>Walking on imported air</span>") + }); + }); + }); }); |
