diff options
author | Alibek Omarov <a1ba.omarov@gmail.com> | 2020-10-18 16:01:17 +0000 |
---|---|---|
committer | Gitea <gitea@fake.local> | 2020-10-30 12:58:51 +0100 |
commit | 149589c842e677a082436db927834dd6f1b10cb5 (patch) | |
tree | 8af315ea77394232fd79598bdfb2d6bda0f908bd | |
parent | 390a12d4c892e58e12546a78bc02dcc0e3a3484b (diff) | |
download | pleroma-149589c842e677a082436db927834dd6f1b10cb5.tar.gz pleroma-149589c842e677a082436db927834dd6f1b10cb5.zip |
ConversationViewTest: fix test
-rw-r--r-- | test/pleroma/web/mastodon_api/views/conversation_view_test.exs | 6 |
1 files changed, 4 insertions, 2 deletions
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 2e8203c9b..bd58fb254 100644 --- a/test/pleroma/web/mastodon_api/views/conversation_view_test.exs +++ b/test/pleroma/web/mastodon_api/views/conversation_view_test.exs @@ -37,8 +37,10 @@ defmodule Pleroma.Web.MastodonAPI.ConversationViewTest do assert conversation.id == participation.id |> to_string() assert conversation.last_status.id == activity.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 |