Increase tests counts
Makes distribution of counts more interesting, reducing false positives in the assertions (which are very simple)
This commit is contained in:
@@ -6,12 +6,12 @@ defmodule MusicLibraryWeb.StatsControllerTest do
|
||||
import MusicLibrary.RecordsFixtures
|
||||
|
||||
defp fill_collection(_) do
|
||||
records = Enum.map(1..5, fn _ -> record_fixture() end)
|
||||
records = Enum.map(1..99, fn _ -> record_fixture() end)
|
||||
%{collection: records}
|
||||
end
|
||||
|
||||
defp fill_wishlist(_) do
|
||||
records = Enum.map(1..30, fn _ -> record_fixture(%{purchased_at: nil}) end)
|
||||
records = Enum.map(1..101, fn _ -> record_fixture(%{purchased_at: nil}) end)
|
||||
%{wishlist: records}
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user