From 57cc8dff2e5723b8468c2f1fa1020ac2a9144022 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 22 Apr 2014 11:05:42 +0100 Subject: Rename styleName to the more accurate styleId --- tests/document-to-html.tests.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/document-to-html.tests.js') diff --git a/tests/document-to-html.tests.js b/tests/document-to-html.tests.js index 35f4424..b69d0fb 100644 --- a/tests/document-to-html.tests.js +++ b/tests/document-to-html.tests.js @@ -156,7 +156,7 @@ describe('DocumentConverter', function() { }); test('run styles are converted to HTML if mapping exists', function() { - var run = runOfText("Hello.", {styleName: "Emphasis"}); + var run = runOfText("Hello.", {styleId: "Emphasis"}); var converter = new DocumentConverter({ styleMap: [ { @@ -171,7 +171,7 @@ describe('DocumentConverter', function() { }); test('warning is emitted if run style is unrecognised', function() { - var run = runOfText("Hello.", {styleName: "Emphasis"}); + var run = runOfText("Hello.", {styleId: "Emphasis"}); var converter = new DocumentConverter(); return converter.convertToHtml(run).then(function(result) { assert.deepEqual(result.messages, [results.warning("Unrecognised run style: Emphasis")]); @@ -264,10 +264,10 @@ describe('DocumentConverter', function() { }); }); -function paragraphOfText(text, styleName) { +function paragraphOfText(text, styleId) { var run = runOfText(text); return new documents.Paragraph([run], { - styleName: styleName + styleId: styleId }); } -- cgit v1.2.3