Refactor Records.Cover to Assets.Image
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user