From f4d64b66a06b6faf8e5f604c069e1bff3185d4e7 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 9 Feb 2015 20:55:09 +0000 Subject: Move bookmark handling next to hyperlink handling --- tests/document-to-html.tests.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'tests') diff --git a/tests/document-to-html.tests.js b/tests/document-to-html.tests.js index 18c9f75..41b8129 100644 --- a/tests/document-to-html.tests.js +++ b/tests/document-to-html.tests.js @@ -253,6 +253,17 @@ describe('DocumentConverter', function() { }); }); + test('bookmarks are converted to anchors', function() { + var bookmarkStart = new documents.BookmarkStart({name: "_Peter"}); + var converter = new DocumentConverter({ + idPrefix: "doc-42" + }); + var document = new documents.Document([bookmarkStart]); + return converter.convertToHtml(document).then(function(result) { + assert.equal(result.value, ''); + }); + }); + test('docx tab is converted to tab in HTML', function() { var tab = new documents.Tab(); var converter = new DocumentConverter(); @@ -418,17 +429,6 @@ describe('DocumentConverter', function() { assert.equal(result.value.indexOf("

Hello.

"), 0); }); }); - - test('bookmarks are converted to anchors', function() { - var bookmarkStart = new documents.BookmarkStart({name: "_Peter"}); - var converter = new DocumentConverter({ - idPrefix: "doc-42" - }); - var document = new documents.Document([bookmarkStart]); - return converter.convertToHtml(document).then(function(result) { - assert.equal(result.value, ''); - }); - }); }); function paragraphOfText(text, styleId, styleName) { -- cgit v1.2.3