From 1caa452c06f31f35ee5ad15f0e9dae97b928daa3 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 28 Mar 2016 12:50:16 +0100 Subject: Generated IDs no longer insert a hyphen after the ID prefix --- tests/mammoth.tests.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/mammoth.tests.js') diff --git a/tests/mammoth.tests.js b/tests/mammoth.tests.js index 34adb09..0f0ad53 100644 --- a/tests/mammoth.tests.js +++ b/tests/mammoth.tests.js @@ -226,7 +226,7 @@ describe('mammoth', function() { // TODO: don't duplicate footnotes with multiple references var docxPath = path.join(__dirname, "test-data/footnotes.docx"); var options = { - idPrefix: "doc-42" + idPrefix: "doc-42-" }; return mammoth.convertToHtml({path: docxPath}, options).then(function(result) { var expectedOutput = '

Ouch' + @@ -242,7 +242,7 @@ describe('mammoth', function() { test('endnotes are appended to text', function() { var docxPath = path.join(__dirname, "test-data/endnotes.docx"); var options = { - idPrefix: "doc-42" + idPrefix: "doc-42-" }; return mammoth.convertToHtml({path: docxPath}, options).then(function(result) { var expectedOutput = '

Ouch' + @@ -258,7 +258,7 @@ describe('mammoth', function() { test('relationships are handled properly in footnotes', function() { var docxPath = path.join(__dirname, "test-data/footnote-hyperlink.docx"); var options = { - idPrefix: "doc-42" + idPrefix: "doc-42-" }; return mammoth.convertToHtml({path: docxPath}, options).then(function(result) { var expectedOutput = -- cgit v1.2.3