diff options
Diffstat (limited to 'test/web')
| -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 | 
