Files
music_library/test/support/fixtures/last_fm_fixtures.ex
T
Claudio Ortolina 9dce1cacb9 Where possible, use built-in JSON instead of Jason
Note that it's not possible to replace any call where we encode and
pretty print, as JSON doesn't have such functionality.
2024-12-19 20:18:09 +00:00

10 lines
233 B
Elixir

defmodule LastFm.Fixtures do
@fixtures_folder Path.join([File.cwd!(), "test/support/fixtures"])
def artist_get_info do
Path.join([@fixtures_folder, "artist.getinfo.json"])
|> File.read!()
|> JSON.decode!()
end
end