Blurhash varies slightly by computer generating it, so just validate it wasn't nil
This commit is contained in:
parent
f1abe39f6f
commit
3121ed1325
@ -14,9 +14,10 @@ defmodule Pleroma.Upload.Filter.AnalyzeMetadataTest do
|
|||||||
tempfile: Path.absname("test/fixtures/image.jpg")
|
tempfile: Path.absname("test/fixtures/image.jpg")
|
||||||
}
|
}
|
||||||
|
|
||||||
assert {:ok, :filtered,
|
{:ok, :filtered, meta} = AnalyzeMetadata.filter(upload)
|
||||||
%{width: 1024, height: 768, blurhash: "V5DI,j_NIS%eI.RDI[RS%1WDr=IVD-RoV{?Ge-tiSKkR"}} =
|
|
||||||
AnalyzeMetadata.filter(upload)
|
assert %{width: 1024, height: 768} = meta
|
||||||
|
assert meta.blurhash
|
||||||
end
|
end
|
||||||
|
|
||||||
test "adds the dimensions for videos" do
|
test "adds the dimensions for videos" do
|
||||||
|
Loading…
Reference in New Issue
Block a user