aecaf086c9163b1687a781ce74d08a18e204ea2e
[anni] / test / pleroma / web / admin_api / views / account_view_test.exs
1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
4
5 defmodule Pleroma.Web.AdminAPI.AccountViewTest do
6   use Pleroma.DataCase, async: true
7   import Pleroma.Factory
8   alias Pleroma.Web.AdminAPI.AccountView
9
10   describe "show.json" do
11     test "renders the user's email" do
12       user = insert(:user, email: "yolo@yolofam.tld")
13       assert %{"email" => "yolo@yolofam.tld"} = AccountView.render("show.json", %{user: user})
14     end
15   end
16 end