Refactor Records.Cover to Assets.Image

This commit is contained in:
Claudio Ortolina
2025-09-20 07:42:38 +03:00
parent c5d856fdd8
commit 90b3fa1fdc
8 changed files with 20 additions and 23 deletions
+14
View File
@@ -0,0 +1,14 @@
defmodule MusicLibrary.Assets.ImageTest do
use ExUnit.Case, async: true
alias MusicLibrary.Assets.Image
describe "resize/1" do
test "it resizes to the desired size" do
# Use the cached cover data which is much faster than reading from disk
cover_data = Image.fallback_data()
{:ok, resized_cover} = Image.resize(cover_data)
assert cover_data !== resized_cover
end
end
end