summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-02-09 20:49:33 +0000
committerMichael Williamson <mike@zwobble.org>2015-02-09 20:54:42 +0000
commitfbd5458c9c0e1435406bdfc1fe0927db3076e5f2 (patch)
tree889cde21cdf6d47f9f3c5bbcae9b4823f88d6bc6
parent7a7d96213635a63986b45d74cb1c25bb834f9ca8 (diff)
Ignore whether bookmarks are referenced at render-time
-rw-r--r--tests/document-to-html.tests.js10
1 files 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, '<a id="doc-42-_Peter"></a><a href="#doc-42-_Peter">Hello.</a>');
+ assert.equal(result.value, '<a id="doc-42-_Peter"></a>');
});
});
});