CommonAPI: Standardize visibility error, use helper function if possible
This commit is contained in:
parent
6f55763db4
commit
49a5630c75
3 changed files with 18 additions and 17 deletions
|
|
@ -1301,7 +1301,7 @@ defmodule Pleroma.Web.CommonAPITest do
|
|||
status_ids: [post.id]
|
||||
}
|
||||
|
||||
assert {:error, :visibility} = CommonAPI.report(reporter, report_data)
|
||||
assert {:error, :visibility_error} = CommonAPI.report(reporter, report_data)
|
||||
end
|
||||
|
||||
test "doesn't create a report when some posts are not visible to user" do
|
||||
|
|
@ -1324,7 +1324,7 @@ defmodule Pleroma.Web.CommonAPITest do
|
|||
status_ids: [visible_activity.id, invisibile_activity.id]
|
||||
}
|
||||
|
||||
assert {:error, :visibility} = CommonAPI.report(reporter, report_data_partial)
|
||||
assert {:error, :visibility_error} = CommonAPI.report(reporter, report_data_partial)
|
||||
end
|
||||
|
||||
test "updates report state" do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue