Fix test descriptions for consistency

This commit is contained in:
Claudio Ortolina
2026-03-26 11:54:47 +00:00
parent 69983d9dac
commit 170a52b3e4
8 changed files with 19 additions and 19 deletions
+3 -3
View File
@@ -44,17 +44,17 @@ defmodule MusicLibrary.CollectionTest do
Collection.search_records("brave")
end
test "it respects limit" do
test "respects limit" do
assert [%{title: "Brave"}] = Collection.search_records("brave", limit: 1)
end
test "it respects offset" do
test "respects offset" do
[first_match] = Collection.search_records("brave", limit: 1)
[second_match] = Collection.search_records("brave", limit: 1, offset: 1)
assert first_match !== second_match
end
test "it respects order" do
test "respects order" do
assert [%{title: "Brave (Remastered)"}, %{title: "Brave"}] =
Collection.search_records("brave", order: :purchase)