1 defmodule Pleroma.Web.TwitterAPI.UtilsTest do
2 alias Pleroma.Web.TwitterAPI.Utils
5 test "it adds attachment links to a given text and attachment set" do
7 "url" => [%{"href" => "http://heise.de/i\"m a boy.png"}]
10 res = Utils.add_attachments("", [attachment])
12 assert res == "<br>\n<a href=\"http://heise.de/i\"m a boy.png\" class='attachment'>i\"m a boy.png</a>"