aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/document-to-html.tests.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/document-to-html.tests.js b/tests/document-to-html.tests.js
index cca4d7f..ea0056f 100644
--- a/tests/document-to-html.tests.js
+++ b/tests/document-to-html.tests.js
@@ -528,9 +528,9 @@ describe('DocumentConverter', function() {
contentType: "image/png"
});
var converter = new DocumentConverter({
- convertImage: function(element, messages, callback) {
- element.read("utf8").then(function(altText) {
- callback(null, [Html.selfClosingElement("img", {alt: altText})]);
+ convertImage: function(element, messages) {
+ return element.read("utf8").then(function(altText) {
+ return [Html.selfClosingElement("img", {alt: altText})];
});
}
});