From 5da53d34719882ce704799139f7e9d4a0ebf8de6 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Sat, 12 Jun 2021 13:07:42 -0500 Subject: Remove tests; function is no longer used --- test/pleroma/web/metadata/utils_test.exs | 21 --------------------- 1 file changed, 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 @@ test "it strips HTML tags and other entities" 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("my title

and a paragraph!

") == - "my title and a paragraph!" - end - end end -- cgit v1.2.3