aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-11-28 17:48:31 +0000
committerMichael Williamson <mike@zwobble.org>2016-11-28 17:48:31 +0000
commit611e0c9af7c1948ad46c5471a426ec751e73a1ea (patch)
tree28954bd7f66bd306345f36eebca20df1bd1b07ee /test
parent5428d4daeebd8d1fa8a67b20e2f8a238d3b0abbf (diff)
Call freshElement to create self-closing elements
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})];
});
}
});