diff options
author | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-05-18 10:09:21 +0300 |
---|---|---|
committer | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-05-26 13:48:39 +0300 |
commit | 8f08384d8058f61753c28d37c90b47a2886f348c (patch) | |
tree | fb5a36b9663e4480abfbb965ea08638c8b887ae3 /test/web/admin_api | |
parent | c8803965af543ebd4ee1eb287e1540e25c498bf0 (diff) | |
download | pleroma-8f08384d8058f61753c28d37c90b47a2886f348c.tar.gz |
another view for account in admin-fe status_show
Diffstat (limited to 'test/web/admin_api')
-rw-r--r-- | test/web/admin_api/controllers/status_controller_test.exs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/web/admin_api/controllers/status_controller_test.exs b/test/web/admin_api/controllers/status_controller_test.exs index 124d8dc2e..eff78fb0a 100644 --- a/test/web/admin_api/controllers/status_controller_test.exs +++ b/test/web/admin_api/controllers/status_controller_test.exs @@ -42,6 +42,14 @@ defmodule Pleroma.Web.AdminAPI.StatusControllerTest do |> json_response_and_validate_schema(200) assert response["id"] == activity.id + + account = response["account"] + actor = User.get_by_ap_id(activity.actor) + + assert account["id"] == actor.id + assert account["nickname"] == actor.nickname + assert account["deactivated"] == actor.deactivated + assert account["confirmation_pending"] == actor.confirmation_pending end end |