mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-25 02:19:31 +00:00
Remove OpenGraph test from Ostatus tests
This commit is contained in:
parent
bfe2a11a6b
commit
8cea00e1dc
|
@ -156,19 +156,6 @@ defmodule Pleroma.Web.OStatus.OStatusControllerTest do
|
||||||
|> response(404)
|
|> response(404)
|
||||||
end
|
end
|
||||||
|
|
||||||
test "renders notice metatags in html format", %{conn: conn} do
|
|
||||||
note_activity = insert(:note_activity)
|
|
||||||
conn = get(conn, "/notice/#{note_activity.id}")
|
|
||||||
body = html_response(conn, 200)
|
|
||||||
twitter_card_summary = "<meta content=\"summary\" property=\"twitter:card\">"
|
|
||||||
|
|
||||||
description_content =
|
|
||||||
"<meta content=\"#{note_activity.data["object"]["content"]}\" property=\"og:description\">"
|
|
||||||
|
|
||||||
assert body =~ twitter_card_summary
|
|
||||||
assert body =~ description_content
|
|
||||||
end
|
|
||||||
|
|
||||||
test "gets a notice in xml format", %{conn: conn} do
|
test "gets a notice in xml format", %{conn: conn} do
|
||||||
note_activity = insert(:note_activity)
|
note_activity = insert(:note_activity)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue