Render a minimal artist page

This commit is contained in:
Claudio Ortolina
2024-12-02 17:35:47 +00:00
parent 0eaaab7d00
commit 18df3683fc
6 changed files with 23 additions and 13 deletions
+1 -1
View File
@@ -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__)
+2 -2
View File
@@ -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