diff options
| author | lain <lain@soykaf.club> | 2019-06-15 10:59:35 +0200 | 
|---|---|---|
| committer | lain <lain@soykaf.club> | 2019-06-15 10:59:35 +0200 | 
| commit | a440cf856d53475cac74e6d7df4ad766d350833e (patch) | |
| tree | e76bdbe9f96c61c420750c8cd54ea1d6640ed083 /test/web/mastodon_api | |
| parent | 62ffc00a5d5975a75c905bc728feb71cd15a34d3 (diff) | |
| download | pleroma-a440cf856d53475cac74e6d7df4ad766d350833e.tar.gz pleroma-a440cf856d53475cac74e6d7df4ad766d350833e.zip  | |
Mastodon API: Return the token needed for the chat.
Diffstat (limited to 'test/web/mastodon_api')
| -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  | 
