summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2024-05-08 00:49:29 +0000
committerMark Felder <feld@feld.me>2024-05-08 00:49:29 +0000
commit37de58823f8c7ec45921ea16fc7b5a2e25d27ad1 (patch)
tree62344d097564578a4366eaa6a506082582338f89
parent5bbcf5b8b729da64e80124d7436ef072dd50dec2 (diff)
downloadpleroma-37de58823f8c7ec45921ea16fc7b5a2e25d27ad1.tar.gz
pleroma-37de58823f8c7ec45921ea16fc7b5a2e25d27ad1.zip
Remove test validating missing descriptions are returned as an empty string
-rw-r--r--test/pleroma/web/mastodon_api/controllers/status_controller_test.exs28
1 files changed, 0 insertions, 28 deletions
diff --git a/test/pleroma/web/mastodon_api/controllers/status_controller_test.exs b/test/pleroma/web/mastodon_api/controllers/status_controller_test.exs
index dd84b6352..3a94b65b9 100644
--- a/test/pleroma/web/mastodon_api/controllers/status_controller_test.exs
+++ b/test/pleroma/web/mastodon_api/controllers/status_controller_test.exs
@@ -1698,34 +1698,6 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do
assert response_two == card_data
end
-
- test "replaces missing description with an empty string", %{conn: conn, user: user} do
- Tesla.Mock.mock_global(fn env -> apply(HttpRequestMock, :request, [env]) end)
-
- {:ok, activity} = CommonAPI.post(user, %{status: "https://example.com/ogp-missing-data"})
-
- response =
- conn
- |> get("/api/v1/statuses/#{activity.id}/card")
- |> json_response_and_validate_schema(:ok)
-
- assert response == %{
- "type" => "link",
- "title" => "Pleroma",
- "description" => "",
- "image" => nil,
- "provider_name" => "example.com",
- "provider_url" => "https://example.com",
- "url" => "https://example.com/ogp-missing-data",
- "pleroma" => %{
- "opengraph" => %{
- "title" => "Pleroma",
- "type" => "website",
- "url" => "https://example.com/ogp-missing-data"
- }
- }
- }
- end
end
test "bookmarks" do