mirror of
https://github.com/plausible/analytics.git
synced 2024-12-27 03:21:37 +03:00
14 lines
419 B
Elixir
14 lines
419 B
Elixir
|
defmodule PlausibleWeb.ErrorViewTest do
|
||
|
use PlausibleWeb.ConnCase, async: false
|
||
|
|
||
|
test "renders 500.html", %{conn: conn} do
|
||
|
conn = get(conn, "/test")
|
||
|
layout = Application.get_env(:plausible, PlausibleWeb.Endpoint)[:render_errors][:layout]
|
||
|
|
||
|
error_html =
|
||
|
Phoenix.View.render_to_string(PlausibleWeb.ErrorView, "500.html", conn: conn, layout: layout)
|
||
|
|
||
|
refute error_html =~ "data-domain="
|
||
|
end
|
||
|
end
|