diff options
author | Roman Chvanikov <chvanikoff@gmail.com> | 2019-04-21 20:26:13 +0700 |
---|---|---|
committer | Roman Chvanikov <chvanikoff@gmail.com> | 2019-04-21 20:26:13 +0700 |
commit | 2662bea4e0d945edf7a24a44edf3ed39b2e64de9 (patch) | |
tree | 96f38ab157d2fd2f9db5c5822a886918de333efe /test | |
parent | 24073f829f18d1ebd2cb23dd815c775b39145e42 (diff) | |
download | pleroma-2662bea4e0d945edf7a24a44edf3ed39b2e64de9.tar.gz |
Add accounts and last_status to conversation read response
Diffstat (limited to 'test')
-rw-r--r-- | test/web/mastodon_api/mastodon_api_controller_test.exs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index 4fa5254f3..cf77dff78 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -346,6 +346,8 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do |> post("/api/v1/conversations/#{res_id}/read") assert response = json_response(res_conn, 200) + assert length(response["accounts"]) == 2 + assert response["last_status"]["id"] == direct.id assert response["unread"] == false # (vanilla) Mastodon frontend behaviour |