Skip to content

Commit 72f03c7

Browse files
committed
Adjust the test expectation with htmlparser2 doc to self close the div
1 parent ab230ef commit 72f03c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: test/run.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ it('juice(html)', function() {
2828
});
2929

3030
it('juice(document) with htmlparser2', function() {
31-
var dom = htmlparser2.parseDOM('<style>div{color:red;}</style><div/>');
31+
var dom = htmlparser2.parseDocument('<style>div{color:red;}</style><div/>');
3232
var $ = cheerio.load(dom, {xml:true});
3333

34-
var expected = '<div style="color: red;"></div>';
34+
var expected = '<div style="color: red;"/>';
3535
juice.juiceDocument($);
3636
var actual = $.html();
3737
assert.equal(utils.normalizeLineEndings(actual.trim()), utils.normalizeLineEndings(expected.trim()));

0 commit comments

Comments
 (0)