mirror of
https://github.com/danbulant/node-html-parser
synced 2026-05-19 04:18:52 +00:00
fix should edit the attributes of the element test
This commit is contained in:
parent
1f0ebc52c7
commit
2315ec89a2
1 changed files with 1 additions and 1 deletions
|
|
@ -326,7 +326,7 @@ describe('HTML Parser', function () {
|
|||
root.firstChild.attributes.should.eql({
|
||||
'a': '13',
|
||||
});
|
||||
root.firstChild.toString().should.eql('<p a=13></p>');
|
||||
root.firstChild.toString().should.eql('<p a="13"></p>');
|
||||
});
|
||||
it('should add an attribute to the element', function () {
|
||||
var root = parseHTML('<p a=12></p>');
|
||||
|
|
|
|||
Loading…
Reference in a new issue