Fix Activity.all_by_actor_and_id/2 test

This commit is contained in:
Egor Kislitsyn 2019-09-14 19:31:20 +07:00
parent 4264c4b7e5
commit b870ae08fd

View file

@ -213,7 +213,11 @@ test "all_by_actor_and_id/2" do
assert [] == Activity.all_by_actor_and_id(user, []) assert [] == Activity.all_by_actor_and_id(user, [])
assert [%Activity{id: ^id2}, %Activity{id: ^id1}] = activities =
Activity.all_by_actor_and_id(user.ap_id, [id1, id2]) 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
end end