mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-11-15 12:25:31 +08:00
13 lines
311 B
Elixir
13 lines
311 B
Elixir
defmodule LivebookWeb.ErrorsTest do
|
|
use LivebookWeb.ConnCase, async: true
|
|
|
|
test "renders 404", %{conn: conn} do
|
|
response =
|
|
assert_error_sent :not_found, fn ->
|
|
get(conn, "/this/does/not/exist")
|
|
end
|
|
|
|
assert {404, _, body} = response
|
|
assert body =~ "No Numbats here!"
|
|
end
|
|
end
|