Display dominant colors from the db
This commit is contained in:
@@ -44,6 +44,14 @@ defmodule MusicLibrary.RecordsTest do
|
||||
|
||||
assert record.cover_hash ==
|
||||
"599407DDF69907D4A60FE13CCAA824D25CF08DC124FD6AA3E8E7ECD98C885FFE"
|
||||
|
||||
assert record.dominant_colors == [
|
||||
"#000000",
|
||||
"#C0C0C0",
|
||||
"#C08080",
|
||||
"#404000",
|
||||
"#804040"
|
||||
]
|
||||
end
|
||||
|
||||
test "it queues a task to retrieve artist info data" do
|
||||
|
||||
@@ -69,7 +69,8 @@ defmodule MusicLibrary.Fixtures.Records do
|
||||
selected_release_id: "d3f9b9e2-73f5-4b47-a2a7-2c2199aad608",
|
||||
release_date: Enum.random(1969..2024) |> Integer.to_string(),
|
||||
purchased_at: current_time,
|
||||
artists: [artist_attrs(artist_name)]
|
||||
artists: [artist_attrs(artist_name)],
|
||||
dominant_colors: ["#000000", "#C0C0C0", "#C08080", "#404000", "#804040"]
|
||||
})
|
||||
|> MusicLibrary.Records.create_record()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user