Skip to content

Commit

Permalink
add test issue #48
Browse files Browse the repository at this point in the history
  • Loading branch information
taoqf committed Apr 15, 2021
1 parent c1528cc commit 70dfe8a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/48.js
@@ -0,0 +1,14 @@
const { parse } = require('../dist');

describe.only('issue 48', function () {
it('get decoded text', function () {
const root = parse('<div>The king&#39;s hat is on fire!</div>');
const div = root.querySelector('div');
div.text.should.eql('The king\'s hat is on fire!');
});
it('get decoded text2', function () {
const root = parse('<div>The king&apos;s hat is on fire!</div>');
const div = root.querySelector('div');
div.text.should.eql('The king\'s hat is on fire!');
});
});

0 comments on commit 70dfe8a

Please sign in to comment.