Remove tests; function is no longer used

This commit is contained in:
Mark Felder 2021-06-12 13:07:42 -05:00
parent e0a521bbfb
commit 5da53d3471

View File

@ -71,25 +71,4 @@ defmodule Pleroma.Web.Metadata.UtilsTest do
"my title and a paragraph!"
end
end
describe "scrub_html_and_truncate/2" do
test "it returns text without encoded HTML entities" do
assert Utils.scrub_html_and_truncate("Pleroma's really cool!") == "Pleroma's really cool!"
end
test "it truncates to specified chars" do
assert Utils.scrub_html_and_truncate("Pleroma's really cool!", 10) == "Pleroma..."
end
test "it strips emojis" do
assert Utils.scrub_html_and_truncate(
"Open the door get on the floor everybody walk the dinosaur :dinosaur:"
) == "Open the door get on the floor everybody walk the dinosaur"
end
test "it strips HTML tags and other entities" do
assert Utils.scrub_html_and_truncate("<title>my title</title> <p>and a paragraph&#33;</p>") ==
"my title and a paragraph!"
end
end
end