1 defmodule Pleroma.Web.TwitterAPI.Representers.ObjectReprenterTest do
5 alias Pleroma.Web.TwitterAPI.Representers.ObjectRepresenter
7 test "represent an image attachment" do
14 "mediaType" => "sometype",
30 assert expected_object == ObjectRepresenter.to_map(object)
33 test "represents mastodon-style attachments" do
37 "mediaType" => "image/png",
41 "http://mastodon.example.org/system/media_attachments/files/000/000/001/original/8619f31c6edec470.png"
47 "http://mastodon.example.org/system/media_attachments/files/000/000/001/original/8619f31c6edec470.png",
48 mimetype: "image/png",
54 assert expected_object == ObjectRepresenter.to_map(object)