mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-09 17:55:11 +00:00
Fix eratic test for POST /api/pleroma/admin/reports/:id/notes
It retrieved two ReportNotes and then checked one of them. But the order isn't guaranteed, while the test tested on the content of the first ReportNote. I made the test on the content more generic
This commit is contained in:
parent
2df25e6666
commit
e3107fee98
|
@ -369,7 +369,8 @@ defmodule Pleroma.Web.AdminAPI.ReportControllerTest do
|
|||
refute is_nil(note)
|
||||
|
||||
assert note["user"]["nickname"] == admin.nickname
|
||||
assert note["content"] == "this is disgusting!"
|
||||
# We use '=~' because the order of the notes isn't guaranteed
|
||||
assert note["content"] =~ "this is disgusting"
|
||||
assert note["created_at"]
|
||||
assert response["total"] == 1
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue