legendary-doc-site/apps/app/test/app_web/views/layout_view_test.exs

32 lines
604 B
Elixir
Raw Normal View History

2020-07-29 17:07:36 +00:00
defmodule App.LayoutViewTest do
2021-04-23 21:52:57 +00:00
use AppWeb.ConnCase, async: true
2020-07-29 17:07:36 +00:00
import AppWeb.LayoutView
describe "title/3" do
def default_title do
Legendary.I18n.t! "en", "site.title"
end
test "for nil" do
assert title(nil, nil, nil) =~ default_title()
end
end
describe "excerpt/3" do
def default_excerpt do
Legendary.I18n.t! "en", "site.excerpt"
end
test "for nil" do
assert excerpt(nil, nil, nil) =~ default_excerpt()
end
end
describe "feed_tag/4" do
test "for nil" do
assert feed_tag(nil, nil, nil, nil) == nil
end
end
2020-07-29 17:07:36 +00:00
end