From 65244218366555756c068b1b8edb37515f6f4e9b Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 4 Feb 2015 18:53:02 +0000 Subject: Add CLI argument --output-format --- tests/main.tests.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') diff --git a/tests/main.tests.js b/tests/main.tests.js index 633f0bd..8041fbd 100644 --- a/tests/main.tests.js +++ b/tests/main.tests.js @@ -60,6 +60,13 @@ describe("CLI", function() { }); }); }); + + test("--output-format=markdown option generate markdown output", function() { + return runMammoth(testPath("single-paragraph.docx"), "--output-format=markdown").then(function(result) { + assert.equal(result.stderrOutput, ""); + assert.equal(result.output, "Walking on imported air\n\n"); + }); + }); }); -- cgit v1.2.3