diff --git a/test/html.js b/test/html.js index 0b898e8..e84c20b 100644 --- a/test/html.js +++ b/test/html.js @@ -126,10 +126,10 @@ describe('HTML Parser', function () { const script = root.firstChild; const style = root.lastChild; script.childNodes.should.not.be.empty; - script.childNodes.should.eql([new TextNode('1', script)]); + script.childNodes.should.eql([ new TextNode('1', script) ]); script.text.should.eql('1'); style.childNodes.should.not.be.empty; - style.childNodes.should.eql([new TextNode('2&', style)]); + style.childNodes.should.eql([ new TextNode('2&', style) ]); style.text.should.eql('2&'); style.rawText.should.eql('2&'); }); @@ -198,11 +198,16 @@ describe('HTML Parser', function () { describe('#removeWhitespace()', function () { it('should remove whitespaces while preserving nodes with content', function () { - const root = parseHTML('
\r \n \t
\r \n \t