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

defmodule Pleroma.Web.Frontend.KenomaControllerTest do
  use Pleroma.Web.ConnCase

  setup do: clear_config([:frontends, :primary])

  test "renders index.html from kenoma fe", %{conn: conn} do
    Pleroma.Config.put([:frontends, :primary], %{"name" => "kenoma", "ref" => "develop"})

    conn = get(conn, frontend_path(conn, :index, []))
    assert html_response(conn, 200) =~ "test Kenoma Develop FE"
  end
end