1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Web.MastodonAPI.ListViewTest do
8 alias Pleroma.Web.MastodonAPI.ListView
10 test "Represent a list" do
12 title = "mortal enemies"
13 {:ok, list} = Pleroma.List.create(title, user)
16 id: to_string(list.id),
20 assert expected == ListView.render("list.json", %{list: list})