Fix OGP provider tests

This commit is contained in:
rinpatch 2019-01-25 10:51:06 +03:00
parent 3a5b3c5a3a
commit a45a903480
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ test "it renders all supported types of attachments and skips unknown types" do
} }
}) })
result = OpenGraph.build_tags(%{object: note, user: user}) result = OpenGraph.build_tags(%{object: note, url: note.data["id"], user: user})
assert Enum.all?( assert Enum.all?(
[ [
@ -85,7 +85,7 @@ test "it does not render attachments if post is nsfw" do
} }
}) })
result = OpenGraph.build_tags(%{object: note, user: user}) result = OpenGraph.build_tags(%{object: note, url: note.data["id"], user: user})
assert {:meta, [property: "og:image", content: "https://pleroma.gov/tenshi.png"], []} in result assert {:meta, [property: "og:image", content: "https://pleroma.gov/tenshi.png"], []} in result