diff options
Diffstat (limited to '')
-rw-r--r-- | tests/misc_dangerous_html.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/misc_dangerous_html.rs b/tests/misc_dangerous_html.rs index 76031c1..5559774 100644 --- a/tests/misc_dangerous_html.rs +++ b/tests/misc_dangerous_html.rs @@ -1,14 +1,14 @@ extern crate micromark; use micromark::{micromark, micromark_with_options, Options}; -const DANGER: &Options = &Options { - allow_dangerous_html: true, - allow_dangerous_protocol: true, - default_line_ending: None, -}; - #[test] fn dangerous_html() { + let danger = &Options { + allow_dangerous_html: true, + allow_dangerous_protocol: true, + ..Options::default() + }; + assert_eq!( micromark("<x>"), "<x>", @@ -22,7 +22,7 @@ fn dangerous_html() { ); assert_eq!( - micromark_with_options("<x>", DANGER), + micromark_with_options("<x>", danger), "<x>", "should be unsafe w/ `allowDangerousHtml`" ); |