Fix return type of artist_get_info fixture
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
defmodule LastFm.Fixtures do
|
||||
@fixtures_folder Path.join([File.cwd!(), "test/support/fixtures"])
|
||||
|
||||
alias LastFm.Artist
|
||||
|
||||
def artist_get_info do
|
||||
Path.join([@fixtures_folder, "artist.getinfo.json"])
|
||||
|> File.read!()
|
||||
|> JSON.decode!()
|
||||
|> Map.get("artist")
|
||||
|> Artist.from_api_response()
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user