From e5e37a6f2cfa04e146d534028fbf291aac2a9fe2 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 7 Sep 2015 20:04:58 +0100 Subject: Add support for external images --- tests/mammoth.tests.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/mammoth.tests.js') diff --git a/tests/mammoth.tests.js b/tests/mammoth.tests.js index b7f4766..bb3dca2 100644 --- a/tests/mammoth.tests.js +++ b/tests/mammoth.tests.js @@ -184,6 +184,14 @@ describe('mammoth', function() { }); }); + test('images stored outside of document are included in output', function() { + var docxPath = path.join(__dirname, "test-data/external-picture.docx"); + return mammoth.convertToHtml({path: docxPath}).then(function(result) { + assert.equal(result.value, '

'); + assert.deepEqual([], result.messages); + }); + }); + test('simple list is converted to list elements', function() { var docxPath = path.join(__dirname, "test-data/simple-list.docx"); return mammoth.convertToHtml({path: docxPath}).then(function(result) { -- cgit v1.2.3