mirror of
https://github.com/danbulant/node-html-parser
synced 2026-06-19 06:31:30 +00:00
add tests, pull #23
This commit is contained in:
parent
63bd25a758
commit
9a48e032f1
1 changed files with 2 additions and 0 deletions
|
|
@ -374,6 +374,8 @@ describe('HTML Parser', function () {
|
||||||
'b': '13',
|
'b': '13',
|
||||||
});
|
});
|
||||||
root.firstChild.toString().should.eql('<p a="12" b="13"></p>');
|
root.firstChild.toString().should.eql('<p a="12" b="13"></p>');
|
||||||
|
root.firstChild.setAttribute('required', '');
|
||||||
|
root.firstChild.toString().should.eql('<p a="12" b="13" required=""></p>');
|
||||||
});
|
});
|
||||||
it('should convert value to string', function () {
|
it('should convert value to string', function () {
|
||||||
const root = parseHTML('<p a=12 b=13 c=14></p>');
|
const root = parseHTML('<p a=12 b=13 c=14></p>');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue