ConversationViewTest: fix test
This commit is contained in:
parent
390a12d4c8
commit
149589c842
|
@ -37,8 +37,10 @@ test "represents a Mastodon Conversation entity" do
|
||||||
assert conversation.id == participation.id |> to_string()
|
assert conversation.id == participation.id |> to_string()
|
||||||
assert conversation.last_status.id == activity.id
|
assert conversation.last_status.id == activity.id
|
||||||
|
|
||||||
assert [account] = conversation.accounts
|
account_ids = Enum.map(conversation.accounts, & &1["id"])
|
||||||
assert account.id == other_user.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
|
assert conversation.last_status.pleroma.direct_conversation_id == participation.id
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue