annot.at is a service for syncing static websites, such as blogs, to atproto and standard.site annot.at
elixir atproto standardsite
Something went wrong. Try again.
443 B · 14 lines
Elixir
123456789101112131415defmodule AnnotAtWeb.ErrorHTMLTest do use AnnotAtWeb.ConnCase, async: true
# Bring render_to_string/4 for testing custom views import Phoenix.Template, only: [render_to_string: 4]
test "renders 404.html" do assert render_to_string(AnnotAtWeb.ErrorHTML, "404", "html", []) == "Not Found" end
test "renders 500.html" do assert render_to_string(AnnotAtWeb.ErrorHTML, "500", "html", []) == "Internal Server Error" endend