We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab230ef commit 72f03c7Copy full SHA for 72f03c7
test/run.js
@@ -28,10 +28,10 @@ it('juice(html)', function() {
28
});
29
30
it('juice(document) with htmlparser2', function() {
31
- var dom = htmlparser2.parseDOM('<style>div{color:red;}</style><div/>');
+ var dom = htmlparser2.parseDocument('<style>div{color:red;}</style><div/>');
32
var $ = cheerio.load(dom, {xml:true});
33
34
- var expected = '<div style="color: red;"></div>';
+ var expected = '<div style="color: red;"/>';
35
juice.juiceDocument($);
36
var actual = $.html();
37
assert.equal(utils.normalizeLineEndings(actual.trim()), utils.normalizeLineEndings(expected.trim()));
0 commit comments