aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-02-04 18:53:02 +0000
committerMichael Williamson <mike@zwobble.org>2015-02-04 18:53:02 +0000
commit65244218366555756c068b1b8edb37515f6f4e9b (patch)
tree57ea7166eaa35c4d3e4b86204d556c0348b5699e /tests
parent21ab7c6d791e68e2c3e2884bc5c3ab2455f398d9 (diff)
Add CLI argument --output-format
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");
+ });
+ });
});