1
0
mirror of https://git.pleroma.social/sjw/pleroma.git synced 2024-12-26 07:55:11 +01:00

test: rich media: parser: add malformed data regression test

This commit is contained in:
William Pitcock 2019-01-31 16:19:53 +00:00
parent 46dba03098
commit 3f5b784596

View File

@ -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