aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlex Gleason <alex@alexgleason.me>2021-11-25 14:57:36 -0600
committerAlex Gleason <alex@alexgleason.me>2021-11-25 14:57:36 -0600
commit7e1caddc58bc6850f9780a9cd432b4b839f02e90 (patch)
tree97394e47e0338dd0af256ca22b9e0a1ef62085db /test
parent0b2119d4a791b3623b304b0bab683609d23271d4 (diff)
downloadpleroma-7e1caddc58bc6850f9780a9cd432b4b839f02e90.tar.gz
v2 Suggestions: return empty array
Diffstat (limited to 'test')
-rw-r--r--test/pleroma/web/mastodon_api/controllers/suggestion_controller_test.exs9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/pleroma/web/mastodon_api/controllers/suggestion_controller_test.exs b/test/pleroma/web/mastodon_api/controllers/suggestion_controller_test.exs
index 168966fc9..5a9aea680 100644
--- a/test/pleroma/web/mastodon_api/controllers/suggestion_controller_test.exs
+++ b/test/pleroma/web/mastodon_api/controllers/suggestion_controller_test.exs
@@ -15,4 +15,13 @@ defmodule Pleroma.Web.MastodonAPI.SuggestionControllerTest do
assert res == []
end
+
+ test "returns empty result (v2)", %{conn: conn} do
+ res =
+ conn
+ |> get("/api/v2/suggestions")
+ |> json_response_and_validate_schema(200)
+
+ assert res == []
+ end
end