aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-01-07 23:04:12 +0000
committerMichael Williamson <mike@zwobble.org>2014-01-07 23:04:12 +0000
commit743ca7a9b10aca9c9ce4e20cc3246558f1eb706e (patch)
treed72297928b7650d310293146707a7defec682f8a /tests
parent542016383adcf720da27a52e711ec349e4406ecd (diff)
Rename mammoth.style to mammoth.styleMapping
Diffstat (limited to 'tests')
-rw-r--r--tests/mammoth.tests.js2
-rw-r--r--tests/options-reader.tests.js6
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/mammoth.tests.js b/tests/mammoth.tests.js
index 08270a4..c9f4787 100644
--- a/tests/mammoth.tests.js
+++ b/tests/mammoth.tests.js
@@ -40,7 +40,7 @@ describe('mammoth', function() {
"word/document.xml": testData("simple/word/document.xml")
});
var options = {
- styleMap: [mammoth.style("p => h1")]
+ styleMap: [mammoth.styleMapping("p => h1")]
};
return mammoth.convertToHtml({file: docxFile}, options).then(function(result) {
assert.equal("<h1>Hello.</h1>", result.value);
diff --git a/tests/options-reader.tests.js b/tests/options-reader.tests.js
index 8160061..fcfa1bf 100644
--- a/tests/options-reader.tests.js
+++ b/tests/options-reader.tests.js
@@ -1,6 +1,6 @@
var assert = require("assert");
-var style = require("../").style;
+var styleMapping = require("../").styleMapping;
var optionsReader = require("../lib/options-reader");
var standardOptions = optionsReader._standardOptions;
var readOptions = optionsReader.readOptions;
@@ -19,7 +19,7 @@ describe('readOptions', function() {
var options = readOptions({
styleMap: "p.SectionTitle => h2"
});
- assert.deepEqual(style("p.SectionTitle => h2"), options.styleMap[0]);
+ assert.deepEqual(styleMapping("p.SectionTitle => h2"), options.styleMap[0]);
assert.deepEqual(standardOptions.styleMap, options.styleMap.slice(1));
});
@@ -28,7 +28,7 @@ describe('readOptions', function() {
styleMap: "p.SectionTitle => h2",
includeDefaultStyleMap: false
});
- assert.deepEqual([style("p.SectionTitle => h2")], options.styleMap);
+ assert.deepEqual([styleMapping("p.SectionTitle => h2")], options.styleMap);
});
});