Skip to content
Snippets Groups Projects
Commit b870ae08 authored by minibikini's avatar minibikini
Browse files

Fix `Activity.all_by_actor_and_id/2` test

parent 4264c4b7
No related branches found
No related tags found
No related merge requests found
......@@ -213,7 +213,11 @@ test "all_by_actor_and_id/2" do
assert [] == Activity.all_by_actor_and_id(user, [])
assert [%Activity{id: ^id2}, %Activity{id: ^id1}] =
Activity.all_by_actor_and_id(user.ap_id, [id1, id2])
activities =
user.ap_id
|> Activity.all_by_actor_and_id([id1, id2])
|> Enum.sort(&(&1.id < &2.id))
assert [%Activity{id: ^id1}, %Activity{id: ^id2}] = activities
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment