fix markdown format
[akkoma] / test / web / mastodon_api / mastodon_api_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.MastodonAPIControllerTest do
6 use Pleroma.Web.ConnCase
7
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"])
11
12 res =
13 conn
14 |> assign(:user, user)
15 |> get("/api/v1/accounts/#{user.id}/identity_proofs")
16 |> json_response(200)
17
18 assert res == []
19 end
20
21 test "GET /api/v1/endorsements" do
22 %{conn: conn} = oauth_access(["read:accounts"])
23
24 res =
25 conn
26 |> get("/api/v1/endorsements")
27 |> json_response(200)
28
29 assert res == []
30 end
31
32 test "GET /api/v1/trends", %{conn: conn} do
33 res =
34 conn
35 |> get("/api/v1/trends")
36 |> json_response(200)
37
38 assert res == []
39 end
40 end
41 end