From 25109ca7e318e188229cac92552ba0dcd7e897a1 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 1 Apr 2013 16:57:41 +0100 Subject: Add conversion of hyperlink elements to tags --- tests/document-to-html.tests.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests') diff --git a/tests/document-to-html.tests.js b/tests/document-to-html.tests.js index a53039b..7c84482 100644 --- a/tests/document-to-html.tests.js +++ b/tests/document-to-html.tests.js @@ -131,6 +131,17 @@ describe('DocumentConverter', function() { assert.equal(result.html, "Hello."); }); }); + + test('docx hyperlink is converted to ', function() { + var hyperlink = new documents.Hyperlink( + [runOfText("Hello.")], + {href: "http://www.example.com"} + ); + var converter = new DocumentConverter(); + return converter.convertToHtml(hyperlink).then(function(result) { + assert.equal(result.html, 'Hello.'); + }); + }); }); function paragraphOfText(text, styleName) { -- cgit v1.2.3