aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-03-18 18:17:37 +0000
committerMichael Williamson <mike@zwobble.org>2014-03-18 18:17:37 +0000
commit60bb80f6acfa026b53ec618644a23d6adfa80621 (patch)
treea4abc5c55eae8a87df7a1abf1af64277a46b8bb2 /tests
parentb9e608b6d7182876a2b81ee1e5847b4e242cbf29 (diff)
Add --style-map argument to CLI
Diffstat (limited to 'tests')
-rw-r--r--tests/main.tests.js11
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>")
+ });
+ });
+ });
});