aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/document-to-html.tests.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/document-to-html.tests.js b/test/document-to-html.tests.js
index 2543779..c739900 100644
--- a/test/document-to-html.tests.js
+++ b/test/document-to-html.tests.js
@@ -581,7 +581,7 @@ test('can add custom handler for images', function() {
var converter = new DocumentConverter({
convertImage: function(element, messages) {
return element.read("utf8").then(function(altText) {
- return [Html.selfClosingElement("img", {alt: altText})];
+ return [Html.freshElement("img", {alt: altText})];
});
}
});