From eda2c2db9e9e2775f1d62397ff98bd51f327f428 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 5 Jul 2014 19:25:00 +0100 Subject: Add disabled test for table support --- tests/mammoth.tests.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/mammoth.tests.js') diff --git a/tests/mammoth.tests.js b/tests/mammoth.tests.js index 1fc278e..bcdeea3 100644 --- a/tests/mammoth.tests.js +++ b/tests/mammoth.tests.js @@ -88,6 +88,16 @@ describe('mammoth', function() { }); }); + test('word tables are converted to html tables', function() { + // TODO: enable this test once tables are supported + return; + var docxPath = path.join(__dirname, "test-data/tables.docx"); + return mammoth.convertToHtml({path: docxPath}).then(function(result) { + assert.equal(result.value, "

Above

Top leftTop right
Bottom leftBottom right

Below

"); + assert.deepEqual(result.messages, []); + }); + }); + test('footnotes are appended to text', function() { // TODO: don't duplicate footnotes with multiple references var docxPath = path.join(__dirname, "test-data/footnotes.docx"); -- cgit v1.2.3