mirror of
https://github.com/danbulant/node-html-parser
synced 2026-06-20 15:11:26 +00:00
add code test
This commit is contained in:
parent
d1647e7e72
commit
45e77f3771
1 changed files with 1 additions and 0 deletions
|
|
@ -511,6 +511,7 @@ describe('HTML Parser', function () {
|
||||||
root.firstChild.attributes.alt.should.eql(`Verissimo, Ilaria D'Amico: «Sogno una bambina. Buffon mi ha chiesto in moglie tante volte»`);
|
root.firstChild.attributes.alt.should.eql(`Verissimo, Ilaria D'Amico: «Sogno una bambina. Buffon mi ha chiesto in moglie tante volte»`);
|
||||||
root.firstChild.setAttribute('alt', '«Sogno');
|
root.firstChild.setAttribute('alt', '«Sogno');
|
||||||
root.firstChild.getAttribute('alt').should.eql('«Sogno');
|
root.firstChild.getAttribute('alt').should.eql('«Sogno');
|
||||||
|
root.firstChild.rawAttributes.alt.should.eql('«Sogno');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue