projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Handle dates in the Unix timestamp format (Fixes #763)
[akkoma]
/
test
/
web
/
rich_media
/
parser_test.exs
diff --git
a/test/web/rich_media/parser_test.exs
b/test/web/rich_media/parser_test.exs
index 93a58c52842e738028b01f7886bf78e4e40addb9..47b127cf92b79b6c2cb43c0a80b74d4eb001dfbf 100644
(file)
--- a/
test/web/rich_media/parser_test.exs
+++ b/
test/web/rich_media/parser_test.exs
@@
-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