1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Web.AdminAPI.AccountViewTest do
6 use Pleroma.DataCase, async: true
8 alias Pleroma.Web.AdminAPI.AccountView
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})