add test for markdown

This commit is contained in:
Inhji 2023-07-05 06:49:50 +02:00
parent e87fa125bb
commit 2ac2e1ec01

View file

@ -21,5 +21,11 @@ defmodule ChiyaWeb.MarkdownTest do
assert html =~ "/note/foo"
assert html =~ "MyFoo"
end
test "renders a link to a not existing note with custom class" do
html = Markdown.render("[[foo]]")
assert html =~ "/note/foo"
assert html =~ "class=\"invalid\""
end
end
end