Skip to content

Commit 70dfe8a

Browse files
committed
add test issue taoqf#48
1 parent c1528cc commit 70dfe8a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/48.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
const { parse } = require('../dist');
2+
3+
describe.only('issue 48', function () {
4+
it('get decoded text', function () {
5+
const root = parse('<div>The king&#39;s hat is on fire!</div>');
6+
const div = root.querySelector('div');
7+
div.text.should.eql('The king\'s hat is on fire!');
8+
});
9+
it('get decoded text2', function () {
10+
const root = parse('<div>The king&apos;s hat is on fire!</div>');
11+
const div = root.querySelector('div');
12+
div.text.should.eql('The king\'s hat is on fire!');
13+
});
14+
});

0 commit comments

Comments
 (0)