aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2019-06-15 10:59:35 +0200
committerlain <lain@soykaf.club>2019-06-15 10:59:35 +0200
commita440cf856d53475cac74e6d7df4ad766d350833e (patch)
treee76bdbe9f96c61c420750c8cd54ea1d6640ed083 /test
parent62ffc00a5d5975a75c905bc728feb71cd15a34d3 (diff)
downloadpleroma-a440cf856d53475cac74e6d7df4ad766d350833e.tar.gz
Mastodon API: Return the token needed for the chat.
Diffstat (limited to 'test')
-rw-r--r--test/web/mastodon_api/mastodon_api_controller_test.exs5
1 files changed, 4 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 78d0d3771..707723421 100644
--- a/test/web/mastodon_api/mastodon_api_controller_test.exs
+++ b/test/web/mastodon_api/mastodon_api_controller_test.exs
@@ -542,7 +542,10 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
|> assign(:user, user)
|> get("/api/v1/accounts/verify_credentials")
- assert %{"id" => id, "source" => %{"privacy" => "public"}} = json_response(conn, 200)
+ response = json_response(conn, 200)
+
+ assert %{"id" => id, "source" => %{"privacy" => "public"}} = response
+ assert response["pleroma"]["chat_token"]
assert id == to_string(user.id)
end