Skip to content

Commit

Permalink
unwanted characters encoded test for cheeriojs#866
Browse files Browse the repository at this point in the history
  • Loading branch information
Cactusbone committed Nov 30, 2016
1 parent 0f3d2dd commit 8186bce
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/cheerio.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,15 @@ describe('cheerio', function() {
expect(domEncoded('footer').html()).to.be(expectedXml);
});

it('should not encode characters (issue #866)', function() {
var str = 'абв',
div = '<div>' + str + '</div>',
dom = $.load(div, {decodeEntities: true});

expect(dom.text()).to.be(str);
expect(dom.html()).to.be(div);
});

it('should return a fully-qualified Function', function() {
var $c = $.load('<div>');

Expand Down

0 comments on commit 8186bce

Please sign in to comment.