diff --git a/test/run.js b/test/run.js index ac77cb9..c33f5f3 100644 --- a/test/run.js +++ b/test/run.js @@ -28,10 +28,10 @@ it('juice(html)', function() { }); it('juice(document) with htmlparser2', function() { - var dom = htmlparser2.parseDOM('
'); + var dom = htmlparser2.parseDocument(''); var $ = cheerio.load(dom, {xml:true}); - var expected = ''; + var expected = ''; juice.juiceDocument($); var actual = $.html(); assert.equal(utils.normalizeLineEndings(actual.trim()), utils.normalizeLineEndings(expected.trim()));