ConversationViewTest: fix test
This commit is contained in:
parent
d63ec02f31
commit
1042c30fa5
@ -36,10 +36,10 @@ defmodule Pleroma.Web.MastodonAPI.ConversationViewTest 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 conversation.last_status.account.id == user.id
|
||||||
|
|
||||||
account_ids = Enum.map(conversation.accounts, & &1.id)
|
account_ids = Enum.map(conversation.accounts, & &1.id)
|
||||||
assert length(conversation.accounts) == 2
|
assert length(conversation.accounts) == 1
|
||||||
assert user.id in account_ids
|
|
||||||
assert other_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
|
||||||
|
Loading…
Reference in New Issue
Block a user