diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/pleroma/web/metadata/utils_test.exs | 21 |
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!</p>") == - "my title and a paragraph!" - end - end end |