Fix test warnings

This commit is contained in:
Alex Gleason 2022-11-03 12:00:46 -05:00
parent 4576a5c440
commit f8e8bd9f5c
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 2 additions and 5 deletions

View file

@ -65,7 +65,7 @@ test "it works for incoming unqualified emoji reactions" do
object = Object.get_by_ap_id(data["object"])
assert object.data["reaction_count"] == 1
assert match?([[emoji, _]], object.data["reactions"])
assert match?([[^emoji, _]], object.data["reactions"])
end
test "it reject invalid emoji reactions" do

View file

@ -560,10 +560,7 @@ test "returns the data or an emtpy list" do
test "assigns report to an account" do
reporter = insert(:user)
target_account = insert(:user)
%{id: assigned_id} = assigned = insert(:user)
context = Utils.generate_context_id()
target_ap_id = target_account.ap_id
%{id: assigned_id} = insert(:user)
{:ok, report} = CommonAPI.report(reporter, %{account_id: target_account.id})