From cd5bb2d16c6b28332b0b6077b27b2b90a8051896 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 6 Oct 2022 15:57:55 +0200 Subject: Refactor to split parse from compile options --- tests/xxx_document.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/xxx_document.rs') diff --git a/tests/xxx_document.rs b/tests/xxx_document.rs index dcbb56b..d5c8eef 100644 --- a/tests/xxx_document.rs +++ b/tests/xxx_document.rs @@ -3,7 +3,7 @@ extern crate swc_common; extern crate swc_ecma_ast; extern crate swc_ecma_codegen; mod test_utils; -use micromark::{micromark_to_mdast, Constructs, Options}; +use micromark::{micromark_to_mdast, Constructs, ParseOptions}; use pretty_assertions::assert_eq; use test_utils::{ swc::{parse_esm, parse_expression, serialize}, @@ -15,11 +15,11 @@ use test_utils::{ fn from_markdown(value: &str) -> Result { let mdast = micromark_to_mdast( value, - &Options { + &ParseOptions { constructs: Constructs::mdx(), mdx_esm_parse: Some(Box::new(parse_esm)), mdx_expression_parse: Some(Box::new(parse_expression)), - ..Options::default() + ..ParseOptions::default() }, )?; let hast = to_hast(&mdast); -- cgit