aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mdx_jsx_flow.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/mdx_jsx_flow.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/mdx_jsx_flow.rs b/tests/mdx_jsx_flow.rs
index 85abcd3..337b4cd 100644
--- a/tests/mdx_jsx_flow.rs
+++ b/tests/mdx_jsx_flow.rs
@@ -30,6 +30,7 @@ fn mdx_jsx_flow_agnostic() -> Result<(), String> {
&Options {
parse: ParseOptions {
constructs: Constructs {
+ html_flow: false,
mdx_jsx_flow: true,
..Constructs::default()
},
@@ -43,6 +44,25 @@ fn mdx_jsx_flow_agnostic() -> Result<(), String> {
);
assert_eq!(
+ to_html_with_options(
+ " <a />",
+ &Options {
+ parse: ParseOptions {
+ constructs: Constructs {
+ html_flow: false,
+ mdx_jsx_flow: true,
+ ..Constructs::default()
+ },
+ ..ParseOptions::default()
+ },
+ ..Options::default()
+ }
+ )?,
+ "",
+ "should support indented jsx if indented code is enabled"
+ );
+
+ assert_eq!(
to_html_with_options("<a></a>", &mdx)?,
"",
"should support a closed element"