Skip to content

Commit 37de588

Browse files
committed
Remove test validating missing descriptions are returned as an empty string
1 parent 5bbcf5b commit 37de588

1 file changed

Lines changed: 0 additions & 28 deletions

File tree

test/pleroma/web/mastodon_api/controllers/status_controller_test.exs

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1698,34 +1698,6 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do
16981698

16991699
assert response_two == card_data
17001700
end
1701-
1702-
test "replaces missing description with an empty string", %{conn: conn, user: user} do
1703-
Tesla.Mock.mock_global(fn env -> apply(HttpRequestMock, :request, [env]) end)
1704-
1705-
{:ok, activity} = CommonAPI.post(user, %{status: "https://example.com/ogp-missing-data"})
1706-
1707-
response =
1708-
conn
1709-
|> get("/api/v1/statuses/#{activity.id}/card")
1710-
|> json_response_and_validate_schema(:ok)
1711-
1712-
assert response == %{
1713-
"type" => "link",
1714-
"title" => "Pleroma",
1715-
"description" => "",
1716-
"image" => nil,
1717-
"provider_name" => "example.com",
1718-
"provider_url" => "https://example.com",
1719-
"url" => "https://example.com/ogp-missing-data",
1720-
"pleroma" => %{
1721-
"opengraph" => %{
1722-
"title" => "Pleroma",
1723-
"type" => "website",
1724-
"url" => "https://example.com/ogp-missing-data"
1725-
}
1726-
}
1727-
}
1728-
end
17291701
end
17301702

17311703
test "bookmarks" do

0 commit comments

Comments
 (0)