summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlibek Omarov <a1ba.omarov@gmail.com>2020-10-30 13:37:15 +0100
committerGitea <gitea@fake.local>2020-10-30 13:59:53 +0100
commit1042c30fa53e838f3acae2c176f47997fa425755 (patch)
tree6faccb0cabfab0d199f654e99653f75aa6139c52 /test
parentd63ec02f31e5ee7bb278c4247a83900aceb9193a (diff)
downloadpleroma-1042c30fa53e838f3acae2c176f47997fa425755.tar.gz
pleroma-1042c30fa53e838f3acae2c176f47997fa425755.zip
ConversationViewTest: fix test
Diffstat (limited to 'test')
-rw-r--r--test/pleroma/web/mastodon_api/views/conversation_view_test.exs4
1 files changed, 2 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 81a471cb5..cd02158f9 100644
--- a/test/pleroma/web/mastodon_api/views/conversation_view_test.exs
+++ b/test/pleroma/web/mastodon_api/views/conversation_view_test.exs
@@ -36,10 +36,10 @@ 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
account_ids = Enum.map(conversation.accounts, & &1.id)
- assert length(conversation.accounts) == 2
- assert user.id in account_ids
+ assert length(conversation.accounts) == 1
assert other_user.id in account_ids
assert conversation.last_status.pleroma.direct_conversation_id == participation.id
end