From b75fad95da8e77895791d2eab723212b7c5b9f98 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Fri, 3 May 2013 16:55:54 +0100 Subject: Add basic support for lists by using ListParagraph style --- tests/mammoth.tests.js | 8 ++++++++ tests/test-data/simple-list.docx | Bin 0 -> 13887 bytes 2 files changed, 8 insertions(+) create mode 100755 tests/test-data/simple-list.docx (limited to 'tests') diff --git a/tests/mammoth.tests.js b/tests/mammoth.tests.js index d8235ff..01afdb9 100644 --- a/tests/mammoth.tests.js +++ b/tests/mammoth.tests.js @@ -57,4 +57,12 @@ describe('mammoth', function() { assert.equal(result.value, '

'); }); }); + + test('simple list is converted to list elements', function() { + var converter = new mammoth.Converter(mammoth.standardOptions); + var docxPath = path.join(__dirname, "test-data/simple-list.docx"); + return converter.convertToHtml({path: docxPath}).then(function(result) { + assert.equal(result.value, ''); + }); + }); }) diff --git a/tests/test-data/simple-list.docx b/tests/test-data/simple-list.docx new file mode 100755 index 0000000..c2cd5ae Binary files /dev/null and b/tests/test-data/simple-list.docx differ -- cgit v1.2.3