aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-04-27 22:39:03 +0100
committerMichael Williamson <mike@zwobble.org>2013-04-27 22:39:03 +0100
commit8a3d7bf7bd7c960a29afee293ef7b6a5011fe834 (patch)
tree0bca5f331c4dda11252f92fc50a2f115da098710 /tests
parent2642cdd90f25528df0d9501200bc95417e60ec82 (diff)
Use content type from element when generating HTML
Diffstat (limited to 'tests')
-rw-r--r--tests/document-to-html.tests.js3
1 files changed, 2 insertions, 1 deletions
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) {