it("should not have trailing empty tags", function () {
downsize("<p>there are five words here</p><i>what</i>", {words: 5})
.should.equal("<p>there are five words here</p>");
});
result:
AssertionError: expected '<p>there are five words here</p><i></i>' to equal '<p>there are five words here</p>'
+ expected - actual
+"<p>there are five words here</p>"
-"<p>there are five words here</p><i></i>"
Trailing empty tags occur.
i.e.
result: