ConversationViewTest: fix test #2
authorAlibek Omarov <a1ba.omarov@gmail.com>
Sun, 18 Oct 2020 19:12:42 +0000 (19:12 +0000)
committerGitea <gitea@fake.local>
Fri, 30 Oct 2020 11:58:51 +0000 (12:58 +0100)
test/pleroma/web/mastodon_api/views/conversation_view_test.exs

index bd58fb2543af527bfff4f5f46d065761eb6fd3ec..81a471cb5a3cccd3f7b78d5b7cf602e0ad11ab9f 100644 (file)
@@ -37,7 +37,7 @@ defmodule Pleroma.Web.MastodonAPI.ConversationViewTest do
     assert conversation.id == participation.id |> to_string()
     assert conversation.last_status.id == activity.id
 
-    account_ids = Enum.map(conversation.accounts, & &1["id"])
+    account_ids = Enum.map(conversation.accounts, & &1.id)
     assert length(conversation.accounts) == 2
     assert user.id in account_ids
     assert other_user.id in account_ids