X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Fformatter_test.exs;h=4c65b26f2817f91b399c221a52226fcaf90e7cbf;hb=0df1a4efc841af4a12f45c1551f372d867ff7e1d;hp=d9cef8abc53e77b5bc9c148aee7c7e33ce9cf05a;hpb=806550c921d1137e47ec662ea83ee0a542fb55d5;p=akkoma diff --git a/test/formatter_test.exs b/test/formatter_test.exs index d9cef8abc..4c65b26f2 100644 --- a/test/formatter_test.exs +++ b/test/formatter_test.exs @@ -34,6 +34,13 @@ defmodule Pleroma.FormatterTest do assert Formatter.add_links({[], text}) |> Formatter.finalize() == expected + text = "https://mastodon.social:4000/@lambadalambda" + + expected = + "https://mastodon.social:4000/@lambadalambda" + + assert Formatter.add_links({[], text}) |> Formatter.finalize() == expected + text = "@lambadalambda" expected = "@lambadalambda" @@ -57,6 +64,13 @@ defmodule Pleroma.FormatterTest do "https://en.wikipedia.org/wiki/Sophia_(Gnosticism)#Mythos_of_the_soul" assert Formatter.add_links({[], text}) |> Formatter.finalize() == expected + + text = "https://www.google.co.jp/search?q=Nasim+Aghdam" + + expected = + "https://www.google.co.jp/search?q=Nasim+Aghdam" + + assert Formatter.add_links({[], text}) |> Formatter.finalize() == expected end end