blob: 96061c15a4fb63dcf2334d211dff6f8a3b11684f (
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.HeadlessControllerTest do
use Pleroma.Web.ConnCase
setup do: clear_config([:frontends, :primary])
test "Returns 404", %{conn: conn} do
Pleroma.Config.put([:frontends, :primary], %{"name" => "none", "ref" => ""})
conn = get(conn, frontend_path(conn, :index, []))
assert text_response(conn, 404) == ""
end
end
|