mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-19 16:16:55 +00:00
3063e3b440
This reverts commit 0ca3ab7b59
.
15 lines
444 B
Elixir
15 lines
444 B
Elixir
defmodule Pleroma.Web.TwitterAPI.UtilsTest do
|
|
alias Pleroma.Web.TwitterAPI.Utils
|
|
use Pleroma.DataCase
|
|
|
|
test "it adds attachment links to a given text and attachment set" do
|
|
attachment = %{
|
|
"url" => [%{"href" => "http://heise.de/i\"m a boy.png"}]
|
|
}
|
|
|
|
res = Utils.add_attachments("", [attachment])
|
|
|
|
assert res == "<br />\n<a href=\"http://heise.de/i%22m%20a%20boy.png\" class='attachment'>i\"m a boy.png</a>"
|
|
end
|
|
end
|