From fbd5458c9c0e1435406bdfc1fe0927db3076e5f2 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 9 Feb 2015 20:49:33 +0000 Subject: Ignore whether bookmarks are referenced at render-time --- tests/document-to-html.tests.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/tests/document-to-html.tests.js b/tests/document-to-html.tests.js index cb2b3d3..18c9f75 100644 --- a/tests/document-to-html.tests.js +++ b/tests/document-to-html.tests.js @@ -419,18 +419,14 @@ describe('DocumentConverter', function() { }); }); - test('referenced bookmarks are coverted to anchors', function() { + test('bookmarks are converted to anchors', function() { var bookmarkStart = new documents.BookmarkStart({name: "_Peter"}); - var hyperlink = new documents.Hyperlink( - [runOfText("Hello.")], - {anchor: "_Peter"} - ); var converter = new DocumentConverter({ idPrefix: "doc-42" }); - var document = new documents.Document([bookmarkStart, hyperlink]); + var document = new documents.Document([bookmarkStart]); return converter.convertToHtml(document).then(function(result) { - assert.equal(result.value, 'Hello.'); + assert.equal(result.value, ''); }); }); }); -- cgit v1.2.3