diff options
author | rinpatch <rinpatch@sdf.org> | 2019-06-15 09:56:01 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-06-15 09:56:01 +0000 |
commit | fb4af26d75406f557a8b1a8dd388e16865b5bda2 (patch) | |
tree | be0e4beaddc40d8daeea09f2c94410b2991b677e /test | |
parent | 62ffc00a5d5975a75c905bc728feb71cd15a34d3 (diff) | |
parent | 0632ed2f87671d90d029d435a084a8da72f549ea (diff) | |
download | pleroma-fb4af26d75406f557a8b1a8dd388e16865b5bda2.tar.gz pleroma-fb4af26d75406f557a8b1a8dd388e16865b5bda2.zip |
Merge branch 'feature/add-chat-token-to-masto-api' into 'develop'
Mastodon API: Return the token needed for the chat.
See merge request pleroma/pleroma!1292
Diffstat (limited to 'test')
-rw-r--r-- | test/web/mastodon_api/mastodon_api_controller_test.exs | 5 |
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 |