From a12f397c373ab69ddd5da6f738309b942201e1f6 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 1 Apr 2019 22:08:17 +0200 Subject: Fix tests for extensions --- askama_shared/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'askama_shared/src') diff --git a/askama_shared/src/lib.rs b/askama_shared/src/lib.rs index 0d68120..ffc0351 100644 --- a/askama_shared/src/lib.rs +++ b/askama_shared/src/lib.rs @@ -225,7 +225,7 @@ static CONFIG_FILE_NAME: &str = "askama.toml"; static DEFAULT_SYNTAX_NAME: &str = "default"; static DEFAULT_ESCAPERS: &[(&[&str], &str)] = &[ (&["html", "htm", "xml"], "::askama::Html"), - (&["none", "txt", ""], "::askama::Text"), + (&["md", "none", "txt", "yml", ""], "::askama::Text"), (&["j2", "jinja", "jinja2"], "::askama::Html"), ]; @@ -404,7 +404,7 @@ mod tests { vec![ (str_set(&["js"]), "::askama::Js".into()), (str_set(&["html", "htm", "xml"]), "::askama::Html".into()), - (str_set(&["md", "yml", "none", "txt", ""]), "::askama::Text".into()), + (str_set(&["md", "none", "txt", "yml", ""]), "::askama::Text".into()), (str_set(&["j2", "jinja", "jinja2"]), "::askama::Html".into()), ] ); -- cgit