aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mdx_jsx_flow.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/mdx_jsx_flow.rs26
1 files changed, 10 insertions, 16 deletions
diff --git a/tests/mdx_jsx_flow.rs b/tests/mdx_jsx_flow.rs
index 337b4cd..219b0b5 100644
--- a/tests/mdx_jsx_flow.rs
+++ b/tests/mdx_jsx_flow.rs
@@ -10,11 +10,8 @@ use pretty_assertions::assert_eq;
#[test]
fn mdx_jsx_flow_agnostic() -> Result<(), String> {
let mdx = Options {
- parse: ParseOptions {
- constructs: Constructs::mdx(),
- ..ParseOptions::default()
- },
- ..Options::default()
+ parse: ParseOptions::mdx(),
+ ..Default::default()
};
assert_eq!(
@@ -32,11 +29,11 @@ fn mdx_jsx_flow_agnostic() -> Result<(), String> {
constructs: Constructs {
html_flow: false,
mdx_jsx_flow: true,
- ..Constructs::default()
+ ..Default::default()
},
- ..ParseOptions::default()
+ ..Default::default()
},
- ..Options::default()
+ ..Default::default()
}
)?,
"<pre><code>&lt;a /&gt;\n</code></pre>",
@@ -51,11 +48,11 @@ fn mdx_jsx_flow_agnostic() -> Result<(), String> {
constructs: Constructs {
html_flow: false,
mdx_jsx_flow: true,
- ..Constructs::default()
+ ..Default::default()
},
- ..ParseOptions::default()
+ ..Default::default()
},
- ..Options::default()
+ ..Default::default()
}
)?,
"",
@@ -94,11 +91,8 @@ fn mdx_jsx_flow_agnostic() -> Result<(), String> {
#[test]
fn mdx_jsx_flow_essence() -> Result<(), String> {
let mdx = Options {
- parse: ParseOptions {
- constructs: Constructs::mdx(),
- ..ParseOptions::default()
- },
- ..Options::default()
+ parse: ParseOptions::mdx(),
+ ..Default::default()
};
assert_eq!(