aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/main.tests.js7
1 files changed, 7 insertions, 0 deletions
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");
+ });
+ });
});