Add basic Markdown test

This commit is contained in:
Konrad Borowski 2019-08-09 09:58:51 +02:00
parent 7d07c7b516
commit 52f2dffc29

View File

@ -76,3 +76,16 @@ fn render_markdown(markdown: &str) -> String {
);
FILTER.clean(&output).to_string()
}
#[cfg(test)]
mod test {
use super::render_markdown;
#[test]
fn markdown_works() {
assert_eq!(
render_markdown("**bold**"),
"<p><strong>bold</strong></p>\n"
);
}
}