diff options
author | rinpatch <rinpatch@sdf.org> | 2019-06-03 13:16:17 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-06-03 13:16:17 +0300 |
commit | dc91bcc0afc82ddd52a617352e0e4e89e1a1d61c (patch) | |
tree | e2625834287cb13a3951c93886ae080ed58c1484 /test | |
parent | 026b245dbc2900d90a737f024b87453bf552b62b (diff) | |
parent | d33d248b69c77a7ab712cfe4b727c0000a77f4ea (diff) | |
download | pleroma-dc91bcc0afc82ddd52a617352e0e4e89e1a1d61c.tar.gz pleroma-dc91bcc0afc82ddd52a617352e0e4e89e1a1d61c.zip |
Merge branch 'develop' into feature/polls-2-electric-boogalo
Diffstat (limited to 'test')
-rw-r--r-- | test/web/mastodon_api/mastodon_api_controller_test.exs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index 701f8ee4b..e941aae5b 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -414,12 +414,13 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do test "Conversations", %{conn: conn} do user_one = insert(:user) user_two = insert(:user) + user_three = insert(:user) {:ok, user_two} = User.follow(user_two, user_one) {:ok, direct} = CommonAPI.post(user_one, %{ - "status" => "Hi @#{user_two.nickname}!", + "status" => "Hi @#{user_two.nickname}, @#{user_three.nickname}!", "visibility" => "direct" }) @@ -445,7 +446,10 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do } ] = response + account_ids = Enum.map(res_accounts, & &1["id"]) assert length(res_accounts) == 2 + assert user_two.id in account_ids + assert user_three.id in account_ids assert is_binary(res_id) assert unread == true assert res_last_status["id"] == direct.id |