Render a minimal artist page
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
defmodule LastFm.TrackTest do
|
||||
defmodule LastFm.ArtistTest do
|
||||
use ExUnit.Case, async: true
|
||||
|
||||
@api_response_path Path.expand("../support/fixtures/artist.getinfo.json", __DIR__)
|
||||
|
||||
@@ -171,9 +171,9 @@ defmodule MusicLibrary.RecordsTest do
|
||||
describe "get_artist/1" do
|
||||
test "it returns records with essential data" do
|
||||
record = record_fixture()
|
||||
expected = record.artists |> hd()
|
||||
[expected] = record.artists
|
||||
|
||||
artist = Records.get_artist(expected.musicbrainz_id)
|
||||
artist = Records.get_artist!(expected.musicbrainz_id)
|
||||
|
||||
assert expected == artist
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user