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 ++++++++++ tests/test-data/tables.docx | Bin 0 -> 13087 bytes 2 files changed, 10 insertions(+) create mode 100755 tests/test-data/tables.docx (limited to 'tests') 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"); diff --git a/tests/test-data/tables.docx b/tests/test-data/tables.docx new file mode 100755 index 0000000..86009a7 Binary files /dev/null and b/tests/test-data/tables.docx differ -- cgit v1.2.3