diff options
author | feld <feld@feld.me> | 2020-04-02 16:48:47 +0000 |
---|---|---|
committer | feld <feld@feld.me> | 2020-04-02 16:48:47 +0000 |
commit | 7879369e4d817dc1e84194cdbd4366d2801e974b (patch) | |
tree | a9f9479fc3bbdcea236e25eefcc2a41d71030bd9 /test | |
parent | fd932b14a7e7335a91a2acc2d6dd6fba7e2e90b3 (diff) | |
parent | aa78325117c879ecb7ec76383c239078275adbd9 (diff) | |
download | pleroma-7879369e4d817dc1e84194cdbd4366d2801e974b.tar.gz |
Merge branch '2323-accounts-relationships-hotfix' into 'develop'
[#2323] Fixed /accounts/relationships
Closes pleroma-fe#820
See merge request pleroma/pleroma!2347
Diffstat (limited to 'test')
-rw-r--r-- | test/web/mastodon_api/views/account_view_test.exs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/web/mastodon_api/views/account_view_test.exs b/test/web/mastodon_api/views/account_view_test.exs index 8d00e3c21..4435f69ff 100644 --- a/test/web/mastodon_api/views/account_view_test.exs +++ b/test/web/mastodon_api/views/account_view_test.exs @@ -209,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 %{ |