Merge branch 'fix/1658-invite-send' into 'develop'
[akkoma] / test / web / mastodon_api / views / account_view_test.exs
index ef3f3eff17f8b3f41d23af0d8d8d5696f97d7668..4435f69ff6669faf6289651badcbcb4540ef31f2 100644 (file)
@@ -178,9 +178,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
 
     assert represented = AccountView.render("show.json", %{user: user})
     assert represented.acct == "compositions@channels.tests.funkwhale.audio"
-    # assert represented.url == "https://channels.tests.funkwhale.audio/channels/compositions"
-    assert represented.url ==
-             "https://channels.tests.funkwhale.audio/federation/actors/compositions"
+    assert represented.url == "https://channels.tests.funkwhale.audio/channels/compositions"
   end
 
   test "Represent a deactivated user for an admin" do
@@ -211,6 +209,9 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
       relationships_opt = UserRelationship.view_relationships_option(user, [other_user])
       opts = Map.put(opts, :relationships, relationships_opt)
       assert expected_result == AccountView.render("relationship.json", opts)
+
+      assert [expected_result] ==
+               AccountView.render("relationships.json", %{user: user, targets: [other_user]})
     end
 
     @blank_response %{