diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-05-03 21:30:16 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-05-03 21:30:16 +0100 |
| commit | 29152fa7def7c9c46a0aa3c74e67d1a03878a9f5 (patch) | |
| tree | a2483e6b3847ee02b687d5cfc060ffe77905383f /tests | |
| parent | ce01e3ec266ca3cbd96832766174e49337db98f8 (diff) | |
Remove runStyleMap in favour of general styleMap
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>"); |
