1 defmodule Pleroma.Web.MastodonAPI.ListViewTest do
4 alias Pleroma.Web.MastodonAPI.ListView
6 test "Represent a list" do
8 title = "mortal enemies"
9 {:ok, list} = Pleroma.List.create(title, user)
12 id: to_string(list.id),
16 assert expected == ListView.render("list.json", %{list: list})