Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into stats-genserver-fix
[akkoma] / test / pleroma / web / mastodon_api / controllers / suggestion_controller_test.exs
1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
4
5 defmodule Pleroma.Web.MastodonAPI.SuggestionControllerTest do
6 use Pleroma.Web.ConnCase
7
8 setup do: oauth_access(["read"])
9
10 test "returns empty result", %{conn: conn} do
11 res =
12 conn
13 |> get("/api/v1/suggestions")
14 |> json_response_and_validate_schema(200)
15
16 assert res == []
17 end
18 end