mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-22 22:49:25 +00:00
test: rich media: parser: add malformed data regression test
This commit is contained in:
parent
46dba03098
commit
3f5b784596
|
@ -88,4 +88,8 @@ defmodule Pleroma.Web.RichMedia.ParserTest do
|
|||
width: "1024"
|
||||
}}
|
||||
end
|
||||
|
||||
test "rejects invalid OGP data" do
|
||||
assert {:error, _} = Pleroma.Web.RichMedia.Parser.parse("http://example.com/malformed")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue