Skip to content

Commit

Permalink
fix(tests): Pass isDocument: false to load
Browse files Browse the repository at this point in the history
  • Loading branch information
fb55 committed Dec 21, 2020
1 parent 0a1bd88 commit 5b99776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/cheerio.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ describe('cheerio', function () {

it('should use htmlparser2 if xml option is used', function () {
var str = '<div></div>';
var dom = cheerio.load(str);
var dom = cheerio.load(str, null, false);
// Should use htmlparser2 and not add <html>, <body> etc. tags
expect(dom.html()).to.be(str);
});
Expand Down

0 comments on commit 5b99776

Please sign in to comment.