logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

account_view_test.exs (544B)


  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. defmodule Pleroma.Web.AdminAPI.AccountViewTest do
  5. use Pleroma.DataCase, async: true
  6. import Pleroma.Factory
  7. alias Pleroma.Web.AdminAPI.AccountView
  8. describe "show.json" do
  9. test "renders the user's email" do
  10. user = insert(:user, email: "yolo@yolofam.tld")
  11. assert %{"email" => "yolo@yolofam.tld"} = AccountView.render("show.json", %{user: user})
  12. end
  13. end
  14. end