logo

pleroma

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

manifest_controller_test.exs (547B)


  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.ManifestControllerTest do
  5. use Pleroma.Web.ConnCase
  6. setup do
  7. clear_config([:instance, :name], "Manifest Test")
  8. clear_config([:manifest, :theme_color], "#ff0000")
  9. end
  10. test "manifest.json", %{conn: conn} do
  11. conn = get(conn, "/manifest.json")
  12. assert %{"name" => "Manifest Test", "theme_color" => "#ff0000"} = json_response(conn, 200)
  13. end
  14. end