Added new test.

This commit is contained in:
Martin Edenhofer 2015-01-06 23:52:01 +01:00
parent 9f9964a938
commit 64e938b701
2 changed files with 6 additions and 1 deletions

View file

@ -114,7 +114,7 @@ class App.Utils
@_removeAttributes( html )
# remove tags & content
html.find('br, hr, img').remove()
html.find('hr, img').remove()
# remove tags, keep content
html.find('a').replaceWith( ->

View file

@ -248,6 +248,11 @@ test( "htmlClanup", function() {
result = App.Utils.htmlClanup( $(source) )
equal( result.html(), should, source )
source = "<div><br></div>"
should = "<br>"
result = App.Utils.htmlClanup( $(source) )
equal( result.html(), should, source )
});
// wrap