summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2021-06-12 13:07:42 -0500
committerMark Felder <feld@feld.me>2021-06-12 13:07:42 -0500
commit5da53d34719882ce704799139f7e9d4a0ebf8de6 (patch)
tree04110cf2a9a54234fc5d60de81bfa292b1e7b290
parente0a521bbfb3df5792d0c6879df71338a4c9e3f26 (diff)
Remove tests; function is no longer usedfix/newlines-in-push-and-link-previews
-rw-r--r--test/pleroma/web/metadata/utils_test.exs21
1 files changed, 0 insertions, 21 deletions
diff --git a/test/pleroma/web/metadata/utils_test.exs b/test/pleroma/web/metadata/utils_test.exs
index 1fe211d2f..da7c3a1ad 100644
--- a/test/pleroma/web/metadata/utils_test.exs
+++ b/test/pleroma/web/metadata/utils_test.exs
@@ -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