Merge branch 'fix/mastoapi-sanitize-display-name' into 'develop'
[akkoma] / test / web / mastodon_api / mastodon_api_controller_test.exs
index 78d0d37714273517470d3fe35172ddc755397f5a..707723421fab1e06d46ceddd55118727f4f2c1a8 100644 (file)
@@ -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