From 60bb80f6acfa026b53ec618644a23d6adfa80621 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 18 Mar 2014 18:17:37 +0000 Subject: Add --style-map argument to CLI --- tests/main.tests.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests') 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, "Walking on imported air") + }); + }); + }); }); -- cgit v1.2.3