Fix OGP provider tests

This commit is contained in:
rinpatch 2019-01-25 10:51:06 +03:00
parent 3a5b3c5a3a
commit a45a903480

View file

@ -48,7 +48,7 @@ defmodule Pleroma.Web.Metadata.Providers.OpenGraphTest do
}
})
result = OpenGraph.build_tags(%{object: note, user: user})
result = OpenGraph.build_tags(%{object: note, url: note.data["id"], user: user})
assert Enum.all?(
[
@ -85,7 +85,7 @@ defmodule Pleroma.Web.Metadata.Providers.OpenGraphTest 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