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 == "
\ni\"m a boy.png" end end