forked from AkkomaGang/akkoma
test: rich media: parser: add malformed data regression test
This commit is contained in:
parent
46dba03098
commit
3f5b784596
1 changed files with 4 additions and 0 deletions
|
@ -88,4 +88,8 @@ test "parses OEmbed" do
|
||||||
width: "1024"
|
width: "1024"
|
||||||
}}
|
}}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
test "rejects invalid OGP data" do
|
||||||
|
assert {:error, _} = Pleroma.Web.RichMedia.Parser.parse("http://example.com/malformed")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue