From 965bd9513da033b9804af8ec29c7fa609a84512c Mon Sep 17 00:00:00 2001
From: Michael Williamson
Date: Mon, 19 Jan 2015 23:05:45 +0000
Subject: Add support for endnotes
---
tests/mammoth.tests.js | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
(limited to 'tests/mammoth.tests.js')
diff --git a/tests/mammoth.tests.js b/tests/mammoth.tests.js
index 08649f4..08eafa4 100644
--- a/tests/mammoth.tests.js
+++ b/tests/mammoth.tests.js
@@ -165,17 +165,16 @@ describe('mammoth', function() {
});
test('endnotes are appended to text', function() {
- return;
var docxPath = path.join(__dirname, "test-data/endnotes.docx");
var options = {
generateUniquifier: function() { return 42; }
};
return mammoth.convertToHtml({path: docxPath}, options).then(function(result) {
var expectedOutput = 'Ouch' +
- '[1].' +
- '[2]
' +
- ' A tachyon walks into a bar. ↑
' +
- ' Fin. ↑
';
+ '[1].' +
+ '[2]
' +
+ ' A tachyon walks into a bar. ↑
' +
+ ' Fin. ↑
';
assert.equal(result.value, expectedOutput);
// TODO: get rid of warnings
//~ assert.deepEqual(result.messages, []);
--
cgit v1.2.3