const jsonObj = JSON.parse(json)
expect(jsonObj.items.length).to.be.equal(2)
- expect(jsonObj.items[0].html_content).to.equal('super comment 2')
- expect(jsonObj.items[1].html_content).to.equal('super comment 1')
+ expect(jsonObj.items[0].html_content).to.contain('<p>super comment 2</p>')
+ expect(jsonObj.items[1].html_content).to.contain('<p>super comment 1</p>')
}
})