diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/document-to-html.tests.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/document-to-html.tests.js b/tests/document-to-html.tests.js index 7d49529..447e0b5 100644 --- a/tests/document-to-html.tests.js +++ b/tests/document-to-html.tests.js @@ -153,9 +153,12 @@ describe('DocumentConverter', function() { test('run styles are converted to HTML if mapping exists', function() { var run = runOfText("Hello.", {styleName: "Emphasis"}); var converter = new DocumentConverter({ - runStyleMap: { - "Emphasis": htmlPaths.elements(["strong"]) - } + styleMap: [ + { + from: documentMatchers.run("Emphasis"), + to: htmlPaths.elements(["strong"]) + } + ] }); return converter.convertToHtml(run).then(function(result) { assert.equal(result.value, "<strong>Hello.</strong>"); |
