Remove "it" from the test descriptions
This commit is contained in:
@@ -6,7 +6,7 @@ defmodule MusicLibrary.ArtistsTest do
|
||||
alias MusicLibrary.Artists
|
||||
|
||||
describe "get_artist/1" do
|
||||
test "it returns records with essential data" do
|
||||
test "returns records with essential data" do
|
||||
record = record()
|
||||
[expected] = record.artists
|
||||
|
||||
@@ -17,7 +17,7 @@ defmodule MusicLibrary.ArtistsTest do
|
||||
end
|
||||
|
||||
describe "get_all_artist_ids/0" do
|
||||
test "it returns unique artist IDs" do
|
||||
test "returns unique artist IDs" do
|
||||
marillion_record = record_with_artist("Marillion")
|
||||
_another_marillion_record = record_with_artist("Marillion")
|
||||
steven_wilson_record = record_with_artist("Steven Wilson")
|
||||
@@ -83,7 +83,7 @@ defmodule MusicLibrary.ArtistsTest do
|
||||
end
|
||||
|
||||
describe "refresh_artist_info/1" do
|
||||
test "it stores musicbrainz and discogs data" do
|
||||
test "stores musicbrainz and discogs data" do
|
||||
steven_wilson_musicbrainz_id = "3a51b862-0144-40f6-aa17-6aaeefea29d9"
|
||||
|
||||
Req.Test.stub(MusicBrainz.API, fn conn ->
|
||||
|
||||
@@ -4,7 +4,7 @@ defmodule MusicLibrary.Assets.ImageTest do
|
||||
alias MusicLibrary.Assets.Image
|
||||
|
||||
describe "resize/1" do
|
||||
test "it resizes to the desired size" do
|
||||
test "resizes to the desired size" do
|
||||
# Use the cached cover data which is much faster than reading from disk
|
||||
cover_data = Image.fallback_data()
|
||||
{:ok, resized_cover} = Image.resize(cover_data)
|
||||
|
||||
@@ -97,7 +97,7 @@ defmodule MusicLibrary.Records.RecordTest do
|
||||
end
|
||||
|
||||
describe "add_musicbrainz_data/2" do
|
||||
test "it updates release_ids and included_release_group_ids" do
|
||||
test "updates release_ids and included_release_group_ids" do
|
||||
record = %Record{}
|
||||
assert record.release_ids == []
|
||||
assert record.included_release_group_ids == []
|
||||
|
||||
@@ -23,11 +23,11 @@ defmodule MusicLibrary.WishlistTest do
|
||||
assert [%{title: "Brave"}, %{title: "Brave"}] = Wishlist.search_records("brave")
|
||||
end
|
||||
|
||||
test "it respects limit" do
|
||||
test "respects limit" do
|
||||
assert [%{title: "Brave"}] = Wishlist.search_records("brave", limit: 1)
|
||||
end
|
||||
|
||||
test "it respects offset" do
|
||||
test "respects offset" do
|
||||
[first_match] = Wishlist.search_records("brave", limit: 1)
|
||||
[second_match] = Wishlist.search_records("brave", limit: 1, offset: 1)
|
||||
assert first_match !== second_match
|
||||
|
||||
Reference in New Issue
Block a user