Fix test warnings
This commit is contained in:
parent
4576a5c440
commit
f8e8bd9f5c
2 changed files with 2 additions and 5 deletions
|
@ -65,7 +65,7 @@ test "it works for incoming unqualified emoji reactions" do
|
||||||
object = Object.get_by_ap_id(data["object"])
|
object = Object.get_by_ap_id(data["object"])
|
||||||
|
|
||||||
assert object.data["reaction_count"] == 1
|
assert object.data["reaction_count"] == 1
|
||||||
assert match?([[emoji, _]], object.data["reactions"])
|
assert match?([[^emoji, _]], object.data["reactions"])
|
||||||
end
|
end
|
||||||
|
|
||||||
test "it reject invalid emoji reactions" do
|
test "it reject invalid emoji reactions" do
|
||||||
|
|
|
@ -560,10 +560,7 @@ test "returns the data or an emtpy list" do
|
||||||
test "assigns report to an account" do
|
test "assigns report to an account" do
|
||||||
reporter = insert(:user)
|
reporter = insert(:user)
|
||||||
target_account = insert(:user)
|
target_account = insert(:user)
|
||||||
%{id: assigned_id} = assigned = insert(:user)
|
%{id: assigned_id} = insert(:user)
|
||||||
context = Utils.generate_context_id()
|
|
||||||
|
|
||||||
target_ap_id = target_account.ap_id
|
|
||||||
|
|
||||||
{:ok, report} = CommonAPI.report(reporter, %{account_id: target_account.id})
|
{:ok, report} = CommonAPI.report(reporter, %{account_id: target_account.id})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue