logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma

suggestion_controller_test.exs (470B)


  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. defmodule Pleroma.Web.MastodonAPI.SuggestionControllerTest do
  5. use Pleroma.Web.ConnCase
  6. setup do: oauth_access(["read"])
  7. test "returns empty result", %{conn: conn} do
  8. res =
  9. conn
  10. |> get("/api/v1/suggestions")
  11. |> json_response_and_validate_schema(200)
  12. assert res == []
  13. end
  14. end