summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlibek Omarov <a1ba.omarov@gmail.com>2020-10-30 13:10:19 +0100
committerGitea <gitea@fake.local>2020-10-30 13:59:53 +0100
commit0552a08dfd4daeca69abca0274bbd6db018e5edb (patch)
treea53f64cd6e1a93198ef7f829a92100e3f990b1d1 /test
parent5591dc02486c30e4b80061706f7368d4b788b431 (diff)
downloadpleroma-0552a08dfd4daeca69abca0274bbd6db018e5edb.tar.gz
pleroma-0552a08dfd4daeca69abca0274bbd6db018e5edb.zip
ConversationControllerTest: fix test, fix formatting
Diffstat (limited to 'test')
-rw-r--r--test/pleroma/web/mastodon_api/controllers/conversation_controller_test.exs5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/pleroma/web/mastodon_api/controllers/conversation_controller_test.exs b/test/pleroma/web/mastodon_api/controllers/conversation_controller_test.exs
index 8d07cff3f..291b6b295 100644
--- a/test/pleroma/web/mastodon_api/controllers/conversation_controller_test.exs
+++ b/test/pleroma/web/mastodon_api/controllers/conversation_controller_test.exs
@@ -75,14 +75,17 @@ defmodule Pleroma.Web.MastodonAPI.ConversationControllerTest do
res_conn = get(conn, "/api/v1/conversations")
assert response = json_response_and_validate_schema(res_conn, 200)
+
assert [
%{
"accounts" => res_accounts,
"last_status" => res_last_status
}
] = response
+
+ account_ids = Enum.map(res_accounts, & &1["id"])
assert length(res_accounts) == 1
- assert res_accounts[0]["id"] == user_one.id
+ assert user_one.id in account_ids
end
test "observes limit params", %{