add test for markdown
This commit is contained in:
parent
e87fa125bb
commit
2ac2e1ec01
1 changed files with 26 additions and 20 deletions
|
@ -21,5 +21,11 @@ defmodule ChiyaWeb.MarkdownTest do
|
||||||
assert html =~ "/note/foo"
|
assert html =~ "/note/foo"
|
||||||
assert html =~ "MyFoo"
|
assert html =~ "MyFoo"
|
||||||
end
|
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
|
||||||
end
|
end
|
Loading…
Reference in a new issue