1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
6 use Pleroma.Web.ConnCase
8 describe "empty_array/2 (stubs)" do
9 test "GET /api/v1/accounts/:id/identity_proofs" do
10 %{user: user, conn: conn} = oauth_access(["n/a"])
14 |> assign(:user, user)
15 |> get("/api/v1/accounts/#{user.id}/identity_proofs")
21 test "GET /api/v1/endorsements" do
22 %{conn: conn} = oauth_access(["read:accounts"])
26 |> get("/api/v1/endorsements")
32 test "GET /api/v1/trends", %{conn: conn} do
35 |> get("/api/v1/trends")