From 641c24cdd46f36205d91a2de7da8bbbfa7aac3ce Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Thu, 14 Sep 2017 08:08:32 +0200 Subject: Add media upload endpoint. --- test/web/mastodon_api/status_view_test.exs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/web/mastodon_api/status_view_test.exs') diff --git a/test/web/mastodon_api/status_view_test.exs b/test/web/mastodon_api/status_view_test.exs index 198ee72a8..836a47db0 100644 --- a/test/web/mastodon_api/status_view_test.exs +++ b/test/web/mastodon_api/status_view_test.exs @@ -76,5 +76,9 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do } assert expected == StatusView.render("attachment.json", %{attachment: object}) + + # If theres a "id", use that instead of the generated one + object = Map.put(object, "id", 2) + assert %{id: 2} = StatusView.render("attachment.json", %{attachment: object}) end end -- cgit v1.2.3