diff options
author | lain <lain@soykaf.club> | 2020-11-04 13:23:18 +0100 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-11-04 13:23:18 +0100 |
commit | e46c95b826c3fb98efa15cf6fd5d6cf2fb9797af (patch) | |
tree | 5eac134f31a610d4a1a87003c3ac0728ded42bc0 /test/pleroma/web/admin_api/controllers | |
parent | 6163fbf55328808d90bb1a84cf05ae986f941b31 (diff) | |
parent | ba3f3a5a56d4a5ac05443fd30b5864778ad1131e (diff) | |
download | pleroma-e46c95b826c3fb98efa15cf6fd5d6cf2fb9797af.tar.gz |
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into frontend-admin-api
Diffstat (limited to 'test/pleroma/web/admin_api/controllers')
-rw-r--r-- | test/pleroma/web/admin_api/controllers/report_controller_test.exs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/pleroma/web/admin_api/controllers/report_controller_test.exs b/test/pleroma/web/admin_api/controllers/report_controller_test.exs index fa746d6ea..958e1d3ab 100644 --- a/test/pleroma/web/admin_api/controllers/report_controller_test.exs +++ b/test/pleroma/web/admin_api/controllers/report_controller_test.exs @@ -37,12 +37,21 @@ defmodule Pleroma.Web.AdminAPI.ReportControllerTest do status_ids: [activity.id] }) + conn + |> put_req_header("content-type", "application/json") + |> post("/api/pleroma/admin/reports/#{report_id}/notes", %{ + content: "this is an admin note" + }) + response = conn |> get("/api/pleroma/admin/reports/#{report_id}") |> json_response_and_validate_schema(:ok) assert response["id"] == report_id + + [notes] = response["notes"] + assert notes["content"] == "this is an admin note" end test "returns 404 when report id is invalid", %{conn: conn} do |