summaryrefslogtreecommitdiff
path: root/test/pleroma/web/manifest_controller_test.exs
blob: f442708a89855e0204aab373004c400f14593820 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Pleroma: A lightweight social networking server
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Pleroma.Web.ManifestControllerTest do
  use Pleroma.Web.ConnCase

  setup do
    clear_config([:instance, :name], "Manifest Test")
    clear_config([:manifest, :theme_color], "#ff0000")
  end

  test "manifest.json", %{conn: conn} do
    conn = get(conn, "/manifest.json")
    assert %{"name" => "Manifest Test", "theme_color" => "#ff0000"} = json_response(conn, 200)
  end
end