summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/conversation_test.exs14
-rw-r--r--test/web/mastodon_api/mastodon_api_controller_test.exs1
2 files changed, 14 insertions, 1 deletions
diff --git a/test/conversation_test.exs b/test/conversation_test.exs
index 150d55631..239dda04f 100644
--- a/test/conversation_test.exs
+++ b/test/conversation_test.exs
@@ -85,7 +85,7 @@ defmodule Pleroma.ConversationTest do
conversation_three =
Conversation.get_for_ap_id(context)
- |> Repo.preload(:participations)
+ |> Repo.preload([:participations, :users])
assert conversation_three.id == conversation.id
@@ -100,5 +100,17 @@ defmodule Pleroma.ConversationTest do
assert Enum.find(conversation_three.participations, fn %{user_id: user_id} ->
tridi.id == user_id
end)
+
+ assert Enum.find(conversation_three.users, fn %{id: user_id} ->
+ har.id == user_id
+ end)
+
+ assert Enum.find(conversation_three.users, fn %{id: user_id} ->
+ jafnhar.id == user_id
+ end)
+
+ assert Enum.find(conversation_three.users, fn %{id: user_id} ->
+ tridi.id == user_id
+ end)
end
end
diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs
index bd13f870c..4fa5254f3 100644
--- a/test/web/mastodon_api/mastodon_api_controller_test.exs
+++ b/test/web/mastodon_api/mastodon_api_controller_test.exs
@@ -334,6 +334,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
}
] = response
+ assert length(res_accounts) == 2
assert is_binary(res_id)
assert unread == true
assert res_last_status["id"] == direct.id