From 29152fa7def7c9c46a0aa3c74e67d1a03878a9f5 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Fri, 3 May 2013 21:30:16 +0100 Subject: Remove runStyleMap in favour of general styleMap --- tests/document-to-html.tests.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tests') 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, "Hello."); -- cgit v1.2.3