From 8a3d7bf7bd7c960a29afee293ef7b6a5011fe834 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 27 Apr 2013 22:39:03 +0100 Subject: Use content type from element when generating HTML --- tests/document-to-html.tests.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/document-to-html.tests.js b/tests/document-to-html.tests.js index 864e3ee..c7b7bcf 100644 --- a/tests/document-to-html.tests.js +++ b/tests/document-to-html.tests.js @@ -179,7 +179,8 @@ describe('DocumentConverter', function() { var image = new documents.Image({ readImage: function(encoding) { return q.when(imageBuffer.toString(encoding)); - } + }, + contentType: "image/png" }); var converter = new DocumentConverter(); return converter.convertToHtml(image).then(function(result) { -- cgit v1.2.3