aboutsummaryrefslogtreecommitdiff
path: root/test/web/admin_api
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-06-16 12:57:58 +0300
committerrinpatch <rinpatch@sdf.org>2019-06-16 13:06:12 +0300
commitbf6aa6f1a8460448d51dc69e05257058b3d56a43 (patch)
tree2b70988ac0378e2f37ab499ec29b8836b611de84 /test/web/admin_api
parent44de34d1706c8a15f06e86a85ce5361c5bf9e0a5 (diff)
downloadpleroma-bf6aa6f1a8460448d51dc69e05257058b3d56a43.tar.gz
Fix report content stopping to be nullable
Diffstat (limited to 'test/web/admin_api')
-rw-r--r--test/web/admin_api/views/report_view_test.exs6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/web/admin_api/views/report_view_test.exs b/test/web/admin_api/views/report_view_test.exs
index 51c26a117..f35f36cac 100644
--- a/test/web/admin_api/views/report_view_test.exs
+++ b/test/web/admin_api/views/report_view_test.exs
@@ -17,7 +17,7 @@ defmodule Pleroma.Web.AdminAPI.ReportViewTest do
{:ok, activity} = CommonAPI.report(user, %{"account_id" => other_user.id})
expected = %{
- content: "",
+ content: nil,
actor: AccountView.render("account.json", %{user: user}),
account: AccountView.render("account.json", %{user: other_user}),
statuses: [],
@@ -41,7 +41,7 @@ defmodule Pleroma.Web.AdminAPI.ReportViewTest do
CommonAPI.report(user, %{"account_id" => other_user.id, "status_ids" => [activity.id]})
expected = %{
- content: "",
+ content: nil,
actor: AccountView.render("account.json", %{user: user}),
account: AccountView.render("account.json", %{user: other_user}),
statuses: [StatusView.render("status.json", %{activity: activity})],
@@ -92,7 +92,7 @@ defmodule Pleroma.Web.AdminAPI.ReportViewTest do
data = Map.put(activity.data, "content", "<script> alert('hecked :D:D:D:D:D:D:D') </script>")
activity = Map.put(activity, :data, data)
- refute %{content: "<script> alert('hecked :D:D:D:D:D:D:D') </script>"} ==
+ refute "<script> alert('hecked :D:D:D:D:D:D:D') </script>" ==
ReportView.render("show.json", %{report: activity})[:content]
end
end