X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Fpleroma%2Fweb%2Fmastodon_api%2Fviews%2Fconversation_view_test.exs;h=20c10ba3de77a0c5b2c5a177a89129d919eefae1;hb=a1056aace19d5f6201f06937a93f978917df8418;hp=bd58fb2543af527bfff4f5f46d065761eb6fd3ec;hpb=149589c842e677a082436db927834dd6f1b10cb5;p=akkoma diff --git a/test/pleroma/web/mastodon_api/views/conversation_view_test.exs b/test/pleroma/web/mastodon_api/views/conversation_view_test.exs index bd58fb254..20c10ba3d 100644 --- a/test/pleroma/web/mastodon_api/views/conversation_view_test.exs +++ b/test/pleroma/web/mastodon_api/views/conversation_view_test.exs @@ -36,11 +36,11 @@ defmodule Pleroma.Web.MastodonAPI.ConversationViewTest do assert conversation.id == participation.id |> to_string() assert conversation.last_status.id == activity.id + assert conversation.last_status.account.id == user.id + + assert [account] = conversation.accounts + assert account.id == other_user.id - account_ids = Enum.map(conversation.accounts, & &1["id"]) - assert length(conversation.accounts) == 2 - assert user.id in account_ids - assert other_user.id in account_ids assert conversation.last_status.pleroma.direct_conversation_id == participation.id end end