aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/attention.rs1
-rw-r--r--tests/autolink.rs1
-rw-r--r--tests/block_quote.rs1
-rw-r--r--tests/character_escape.rs1
-rw-r--r--tests/character_reference.rs1
-rw-r--r--tests/code_fenced.rs1
-rw-r--r--tests/code_indented.rs1
-rw-r--r--tests/code_text.rs1
-rw-r--r--tests/commonmark.rs1
-rw-r--r--tests/definition.rs1
-rw-r--r--tests/frontmatter.rs1
-rw-r--r--tests/fuzz.rs1
-rw-r--r--tests/gfm_autolink_literal.rs1
-rw-r--r--tests/gfm_footnote.rs1
-rw-r--r--tests/gfm_strikethrough.rs1
-rw-r--r--tests/gfm_table.rs1
-rw-r--r--tests/gfm_tagfilter.rs1
-rw-r--r--tests/gfm_task_list_item.rs1
-rw-r--r--tests/hard_break_escape.rs1
-rw-r--r--tests/hard_break_trailing.rs1
-rw-r--r--tests/heading_atx.rs1
-rw-r--r--tests/heading_setext.rs1
-rw-r--r--tests/html_flow.rs1
-rw-r--r--tests/html_text.rs1
-rw-r--r--tests/image.rs1
-rw-r--r--tests/link_reference.rs1
-rw-r--r--tests/link_resource.rs1
-rw-r--r--tests/list.rs1
-rw-r--r--tests/math_flow.rs1
-rw-r--r--tests/math_text.rs1
-rw-r--r--tests/mdx_esm.rs1
-rw-r--r--tests/mdx_expression_flow.rs1
-rw-r--r--tests/mdx_expression_text.rs1
-rw-r--r--tests/mdx_jsx_flow.rs1
-rw-r--r--tests/mdx_jsx_text.rs1
-rw-r--r--tests/mdx_swc.rs1
-rw-r--r--tests/misc_bom.rs1
-rw-r--r--tests/misc_dangerous_html.rs1
-rw-r--r--tests/misc_dangerous_protocol.rs1
-rw-r--r--tests/misc_default_line_ending.rs1
-rw-r--r--tests/misc_line_ending.rs1
-rw-r--r--tests/misc_soft_break.rs1
-rw-r--r--tests/misc_tabs.rs1
-rw-r--r--tests/misc_url.rs1
-rw-r--r--tests/misc_zero.rs1
-rw-r--r--tests/test_utils/hast.rs1
-rw-r--r--tests/test_utils/hast_util_to_swc.rs2
-rw-r--r--tests/test_utils/mdx_plugin_recma_document.rs1
-rw-r--r--tests/test_utils/mdx_plugin_recma_jsx_rewrite.rs2
-rw-r--r--tests/test_utils/swc.rs5
-rw-r--r--tests/text.rs1
-rw-r--r--tests/thematic_break.rs1
-rw-r--r--tests/xxx_hast_util_to_swc.rs4
-rw-r--r--tests/xxx_mdast_util_to_hast.rs1
-rw-r--r--tests/xxx_mdx.rs4
-rw-r--r--tests/xxx_mdx_plugin_recma_document.rs4
-rw-r--r--tests/xxx_mdx_plugin_recma_jsx_rewrite.rs4
57 files changed, 1 insertions, 74 deletions
diff --git a/tests/attention.rs b/tests/attention.rs
index d79432d..61d038a 100644
--- a/tests/attention.rs
+++ b/tests/attention.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{
mdast::{Emphasis, Node, Paragraph, Root, Strong, Text},
to_html, to_html_with_options, to_mdast,
diff --git a/tests/autolink.rs b/tests/autolink.rs
index 64f94e9..1f4fab5 100644
--- a/tests/autolink.rs
+++ b/tests/autolink.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{
mdast::{Link, Node, Paragraph, Root, Text},
to_html, to_html_with_options, to_mdast,
diff --git a/tests/block_quote.rs b/tests/block_quote.rs
index 5d765e8..b6fcf6a 100644
--- a/tests/block_quote.rs
+++ b/tests/block_quote.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{
mdast::{BlockQuote, Node, Paragraph, Root, Text},
to_html, to_html_with_options, to_mdast,
diff --git a/tests/character_escape.rs b/tests/character_escape.rs
index 41cc68d..e062f28 100644
--- a/tests/character_escape.rs
+++ b/tests/character_escape.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{
mdast::{Node, Paragraph, Root, Text},
to_html, to_html_with_options, to_mdast,
diff --git a/tests/character_reference.rs b/tests/character_reference.rs
index ab253c4..03282a1 100644
--- a/tests/character_reference.rs
+++ b/tests/character_reference.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{
mdast::{Node, Paragraph, Root, Text},
to_html, to_html_with_options, to_mdast,
diff --git a/tests/code_fenced.rs b/tests/code_fenced.rs
index 73bcb9a..403a893 100644
--- a/tests/code_fenced.rs
+++ b/tests/code_fenced.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{
mdast::{Code, Node, Root},
to_html, to_html_with_options, to_mdast,
diff --git a/tests/code_indented.rs b/tests/code_indented.rs
index 66046c4..1bd5726 100644
--- a/tests/code_indented.rs
+++ b/tests/code_indented.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{
mdast::{Code, Node, Root},
to_html, to_html_with_options, to_mdast,
diff --git a/tests/code_text.rs b/tests/code_text.rs
index 482c46f..47d8b19 100644
--- a/tests/code_text.rs
+++ b/tests/code_text.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{
mdast::{InlineCode, Node, Paragraph, Root, Text},
to_html, to_html_with_options, to_mdast,
diff --git a/tests/commonmark.rs b/tests/commonmark.rs
index 7d62016..30f62ca 100644
--- a/tests/commonmark.rs
+++ b/tests/commonmark.rs
@@ -3,7 +3,6 @@
// > 👉 **Important**: this module is generated by `build.rs`.
// > It is generate from the latest CommonMark website.
-extern crate markdown;
use markdown::{to_html_with_options, CompileOptions, Options};
use pretty_assertions::assert_eq;
diff --git a/tests/definition.rs b/tests/definition.rs
index 46d9cf5..0279d4d 100644
--- a/tests/definition.rs
+++ b/tests/definition.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{
mdast::{Definition, Node, Root},
to_html, to_html_with_options, to_mdast,
diff --git a/tests/frontmatter.rs b/tests/frontmatter.rs
index 7e647d9..82a928a 100644
--- a/tests/frontmatter.rs
+++ b/tests/frontmatter.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{
mdast::{Node, Root, Toml, Yaml},
to_html, to_html_with_options, to_mdast,
diff --git a/tests/fuzz.rs b/tests/fuzz.rs
index e6816e6..d1a87b7 100644
--- a/tests/fuzz.rs
+++ b/tests/fuzz.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{mdast, to_html, to_html_with_options, to_mdast, Options};
use pretty_assertions::assert_eq;
diff --git a/tests/gfm_autolink_literal.rs b/tests/gfm_autolink_literal.rs
index cb38f29..fb46c5c 100644
--- a/tests/gfm_autolink_literal.rs
+++ b/tests/gfm_autolink_literal.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{
mdast::{Link, Node, Paragraph, Root, Text},
to_html, to_html_with_options, to_mdast,
diff --git a/tests/gfm_footnote.rs b/tests/gfm_footnote.rs
index e036857..019db2e 100644
--- a/tests/gfm_footnote.rs
+++ b/tests/gfm_footnote.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{
mdast::{FootnoteDefinition, FootnoteReference, Node, Paragraph, Root, Text},
to_html, to_html_with_options, to_mdast,
diff --git a/tests/gfm_strikethrough.rs b/tests/gfm_strikethrough.rs
index b8e30a6..eb7feb3 100644
--- a/tests/gfm_strikethrough.rs
+++ b/tests/gfm_strikethrough.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{
mdast::{Delete, Node, Paragraph, Root, Text},
to_html, to_html_with_options, to_mdast,
diff --git a/tests/gfm_table.rs b/tests/gfm_table.rs
index c8f20ef..0ea1fa7 100644
--- a/tests/gfm_table.rs
+++ b/tests/gfm_table.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{
mdast::{AlignKind, InlineCode, Node, Root, Table, TableCell, TableRow, Text},
to_html, to_html_with_options, to_mdast,
diff --git a/tests/gfm_tagfilter.rs b/tests/gfm_tagfilter.rs
index e75b96b..0c835e9 100644
--- a/tests/gfm_tagfilter.rs
+++ b/tests/gfm_tagfilter.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{to_html_with_options, CompileOptions, Options};
use pretty_assertions::assert_eq;
diff --git a/tests/gfm_task_list_item.rs b/tests/gfm_task_list_item.rs
index 7c68b21..638206f 100644
--- a/tests/gfm_task_list_item.rs
+++ b/tests/gfm_task_list_item.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{
mdast::{List, ListItem, Node, Paragraph, Root, Text},
to_html, to_html_with_options, to_mdast,
diff --git a/tests/hard_break_escape.rs b/tests/hard_break_escape.rs
index bd6830c..3a02389 100644
--- a/tests/hard_break_escape.rs
+++ b/tests/hard_break_escape.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{
mdast::{Break, Node, Paragraph, Root, Text},
to_html, to_html_with_options, to_mdast,
diff --git a/tests/hard_break_trailing.rs b/tests/hard_break_trailing.rs
index ee8f7fc..6cdbfc8 100644
--- a/tests/hard_break_trailing.rs
+++ b/tests/hard_break_trailing.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{
mdast::{Break, Node, Paragraph, Root, Text},
to_html, to_html_with_options, to_mdast,
diff --git a/tests/heading_atx.rs b/tests/heading_atx.rs
index 3edcb55..944bfc5 100644
--- a/tests/heading_atx.rs
+++ b/tests/heading_atx.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{
mdast::{Heading, Node, Root, Text},
to_html, to_html_with_options, to_mdast,
diff --git a/tests/heading_setext.rs b/tests/heading_setext.rs
index 8cf0863..29e8dd2 100644
--- a/tests/heading_setext.rs
+++ b/tests/heading_setext.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{
mdast::{Heading, Node, Root, Text},
to_html, to_html_with_options, to_mdast,
diff --git a/tests/html_flow.rs b/tests/html_flow.rs
index d79f031..53a3436 100644
--- a/tests/html_flow.rs
+++ b/tests/html_flow.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{
mdast::{Html, Node, Root},
to_html, to_html_with_options, to_mdast,
diff --git a/tests/html_text.rs b/tests/html_text.rs
index 43d2cf2..942c568 100644
--- a/tests/html_text.rs
+++ b/tests/html_text.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{
mdast::{Html, Node, Paragraph, Root, Text},
to_html, to_html_with_options, to_mdast,
diff --git a/tests/image.rs b/tests/image.rs
index 2fff14c..055ac62 100644
--- a/tests/image.rs
+++ b/tests/image.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{
mdast::{Definition, Image, ImageReference, Node, Paragraph, ReferenceKind, Root, Text},
to_html, to_html_with_options, to_mdast,
diff --git a/tests/link_reference.rs b/tests/link_reference.rs
index 310cf40..40ecb1b 100644
--- a/tests/link_reference.rs
+++ b/tests/link_reference.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{
mdast::{Definition, LinkReference, Node, Paragraph, ReferenceKind, Root, Text},
to_html, to_html_with_options, to_mdast,
diff --git a/tests/link_resource.rs b/tests/link_resource.rs
index 959d07f..673b19b 100644
--- a/tests/link_resource.rs
+++ b/tests/link_resource.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{
mdast::{Link, Node, Paragraph, Root, Text},
to_html, to_html_with_options, to_mdast,
diff --git a/tests/list.rs b/tests/list.rs
index cb4019b..e8c42e8 100644
--- a/tests/list.rs
+++ b/tests/list.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{
mdast::{List, ListItem, Node, Paragraph, Root, Text},
to_html, to_html_with_options, to_mdast,
diff --git a/tests/math_flow.rs b/tests/math_flow.rs
index 18795ab..04b7fb5 100644
--- a/tests/math_flow.rs
+++ b/tests/math_flow.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{
mdast::{Math, Node, Root},
to_html, to_html_with_options, to_mdast,
diff --git a/tests/math_text.rs b/tests/math_text.rs
index 4b6fb6a..598853c 100644
--- a/tests/math_text.rs
+++ b/tests/math_text.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{
mdast::{InlineMath, Node, Paragraph, Root, Text},
to_html, to_html_with_options, to_mdast,
diff --git a/tests/mdx_esm.rs b/tests/mdx_esm.rs
index b64a5e9..7176075 100644
--- a/tests/mdx_esm.rs
+++ b/tests/mdx_esm.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
mod test_utils;
use markdown::{
mdast::{MdxjsEsm, Node, Root},
diff --git a/tests/mdx_expression_flow.rs b/tests/mdx_expression_flow.rs
index 559e08c..b5e0c4f 100644
--- a/tests/mdx_expression_flow.rs
+++ b/tests/mdx_expression_flow.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
mod test_utils;
use markdown::{
mdast::{MdxFlowExpression, Node, Root},
diff --git a/tests/mdx_expression_text.rs b/tests/mdx_expression_text.rs
index 4ab26dd..0fccb0f 100644
--- a/tests/mdx_expression_text.rs
+++ b/tests/mdx_expression_text.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
mod test_utils;
use markdown::{
mdast::{MdxTextExpression, Node, Paragraph, Root, Text},
diff --git a/tests/mdx_jsx_flow.rs b/tests/mdx_jsx_flow.rs
index 219b0b5..3b2c79d 100644
--- a/tests/mdx_jsx_flow.rs
+++ b/tests/mdx_jsx_flow.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{
mdast::{List, ListItem, MdxJsxFlowElement, Node, Paragraph, Root, Text},
to_html_with_options, to_mdast,
diff --git a/tests/mdx_jsx_text.rs b/tests/mdx_jsx_text.rs
index a64df64..0520ad2 100644
--- a/tests/mdx_jsx_text.rs
+++ b/tests/mdx_jsx_text.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
mod test_utils;
use markdown::{
mdast::{
diff --git a/tests/mdx_swc.rs b/tests/mdx_swc.rs
index a24864f..831e64f 100644
--- a/tests/mdx_swc.rs
+++ b/tests/mdx_swc.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
mod test_utils;
use markdown::{to_html_with_options, Constructs, Options, ParseOptions};
use pretty_assertions::assert_eq;
diff --git a/tests/misc_bom.rs b/tests/misc_bom.rs
index f15eae2..1967ae3 100644
--- a/tests/misc_bom.rs
+++ b/tests/misc_bom.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::to_html;
use pretty_assertions::assert_eq;
diff --git a/tests/misc_dangerous_html.rs b/tests/misc_dangerous_html.rs
index 0610d23..516da65 100644
--- a/tests/misc_dangerous_html.rs
+++ b/tests/misc_dangerous_html.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{to_html, to_html_with_options, CompileOptions, Options};
use pretty_assertions::assert_eq;
diff --git a/tests/misc_dangerous_protocol.rs b/tests/misc_dangerous_protocol.rs
index 1703d60..c055054 100644
--- a/tests/misc_dangerous_protocol.rs
+++ b/tests/misc_dangerous_protocol.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::to_html;
use pretty_assertions::assert_eq;
diff --git a/tests/misc_default_line_ending.rs b/tests/misc_default_line_ending.rs
index 65c5867..10a8293 100644
--- a/tests/misc_default_line_ending.rs
+++ b/tests/misc_default_line_ending.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{to_html, to_html_with_options, CompileOptions, LineEnding, Options};
use pretty_assertions::assert_eq;
diff --git a/tests/misc_line_ending.rs b/tests/misc_line_ending.rs
index ed91265..355c8d4 100644
--- a/tests/misc_line_ending.rs
+++ b/tests/misc_line_ending.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{to_html, to_html_with_options, CompileOptions, Options};
use pretty_assertions::assert_eq;
diff --git a/tests/misc_soft_break.rs b/tests/misc_soft_break.rs
index 3d00464..1342eee 100644
--- a/tests/misc_soft_break.rs
+++ b/tests/misc_soft_break.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::to_html;
use pretty_assertions::assert_eq;
diff --git a/tests/misc_tabs.rs b/tests/misc_tabs.rs
index 681f0b2..1ad5127 100644
--- a/tests/misc_tabs.rs
+++ b/tests/misc_tabs.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{to_html, to_html_with_options, CompileOptions, Options};
use pretty_assertions::assert_eq;
diff --git a/tests/misc_url.rs b/tests/misc_url.rs
index 531b4ec..cc0f9f2 100644
--- a/tests/misc_url.rs
+++ b/tests/misc_url.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::to_html;
use pretty_assertions::assert_eq;
diff --git a/tests/misc_zero.rs b/tests/misc_zero.rs
index 751a632..dbe0836 100644
--- a/tests/misc_zero.rs
+++ b/tests/misc_zero.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::to_html;
use pretty_assertions::assert_eq;
diff --git a/tests/test_utils/hast.rs b/tests/test_utils/hast.rs
index 2861898..857df4d 100644
--- a/tests/test_utils/hast.rs
+++ b/tests/test_utils/hast.rs
@@ -6,7 +6,6 @@
// ^-- To do: externalize.
extern crate alloc;
-extern crate markdown;
use alloc::{
fmt,
string::{String, ToString},
diff --git a/tests/test_utils/hast_util_to_swc.rs b/tests/test_utils/hast_util_to_swc.rs
index bd9b865..ea7ffd1 100644
--- a/tests/test_utils/hast_util_to_swc.rs
+++ b/tests/test_utils/hast_util_to_swc.rs
@@ -26,8 +26,6 @@
//! TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
//! SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-extern crate swc_common;
-extern crate swc_ecma_ast;
use crate::test_utils::{
hast,
swc::{parse_esm_to_tree, parse_expression_to_tree},
diff --git a/tests/test_utils/mdx_plugin_recma_document.rs b/tests/test_utils/mdx_plugin_recma_document.rs
index 34fd5bb..48648b9 100644
--- a/tests/test_utils/mdx_plugin_recma_document.rs
+++ b/tests/test_utils/mdx_plugin_recma_document.rs
@@ -3,7 +3,6 @@
//! Port of <https://github.com/mdx-js/mdx/blob/main/packages/mdx/lib/plugin/recma-document.js>,
//! by the same author.
-extern crate swc_ecma_ast;
use crate::test_utils::{
hast_util_to_swc::Program,
swc_utils::{bytepos_to_point, prefix_error_with_point, span_to_position},
diff --git a/tests/test_utils/mdx_plugin_recma_jsx_rewrite.rs b/tests/test_utils/mdx_plugin_recma_jsx_rewrite.rs
index 2223d8e..6b058fd 100644
--- a/tests/test_utils/mdx_plugin_recma_jsx_rewrite.rs
+++ b/tests/test_utils/mdx_plugin_recma_jsx_rewrite.rs
@@ -3,8 +3,6 @@
//! Port of <https://github.com/mdx-js/mdx/blob/main/packages/mdx/lib/plugin/recma-jsx-rewrite.js>,
//! by the same author.
-extern crate swc_common;
-extern crate swc_ecma_ast;
use crate::test_utils::{
hast_util_to_swc::Program,
swc_utils::{
diff --git a/tests/test_utils/swc.rs b/tests/test_utils/swc.rs
index c958f6f..f30561d 100644
--- a/tests/test_utils/swc.rs
+++ b/tests/test_utils/swc.rs
@@ -1,8 +1,5 @@
//! Bridge between `markdown-rs` and SWC.
-extern crate markdown;
-extern crate swc_common;
-extern crate swc_ecma_ast;
-extern crate swc_ecma_parser;
+
use crate::test_utils::swc_utils::{bytepos_to_point, prefix_error_with_point, RewriteContext};
use markdown::{mdast::Stop, unist::Point, Location, MdxExpressionKind, MdxSignal};
use swc_common::{
diff --git a/tests/text.rs b/tests/text.rs
index 9c2b0a0..5c5f898 100644
--- a/tests/text.rs
+++ b/tests/text.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::to_html;
use pretty_assertions::assert_eq;
diff --git a/tests/thematic_break.rs b/tests/thematic_break.rs
index 35fa2e0..4721d49 100644
--- a/tests/thematic_break.rs
+++ b/tests/thematic_break.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
use markdown::{
mdast::{Node, Root, ThematicBreak},
to_html, to_html_with_options, to_mdast,
diff --git a/tests/xxx_hast_util_to_swc.rs b/tests/xxx_hast_util_to_swc.rs
index 138dbe3..f58eb65 100644
--- a/tests/xxx_hast_util_to_swc.rs
+++ b/tests/xxx_hast_util_to_swc.rs
@@ -1,7 +1,3 @@
-extern crate markdown;
-extern crate swc_common;
-extern crate swc_ecma_ast;
-extern crate swc_ecma_codegen;
mod test_utils;
use pretty_assertions::assert_eq;
use test_utils::{
diff --git a/tests/xxx_mdast_util_to_hast.rs b/tests/xxx_mdast_util_to_hast.rs
index dd66226..ffee44a 100644
--- a/tests/xxx_mdast_util_to_hast.rs
+++ b/tests/xxx_mdast_util_to_hast.rs
@@ -1,4 +1,3 @@
-extern crate markdown;
mod test_utils;
use markdown::mdast;
use pretty_assertions::assert_eq;
diff --git a/tests/xxx_mdx.rs b/tests/xxx_mdx.rs
index 3c73c62..eb8a211 100644
--- a/tests/xxx_mdx.rs
+++ b/tests/xxx_mdx.rs
@@ -1,7 +1,3 @@
-extern crate markdown;
-extern crate swc_common;
-extern crate swc_ecma_ast;
-extern crate swc_ecma_codegen;
mod test_utils;
use pretty_assertions::assert_eq;
use test_utils::mdx::{mdx, JsxRuntime, Options};
diff --git a/tests/xxx_mdx_plugin_recma_document.rs b/tests/xxx_mdx_plugin_recma_document.rs
index 9fdd053..c534d58 100644
--- a/tests/xxx_mdx_plugin_recma_document.rs
+++ b/tests/xxx_mdx_plugin_recma_document.rs
@@ -1,7 +1,3 @@
-extern crate markdown;
-extern crate swc_common;
-extern crate swc_ecma_ast;
-extern crate swc_ecma_codegen;
mod test_utils;
use markdown::{to_mdast, Location, ParseOptions};
use pretty_assertions::assert_eq;
diff --git a/tests/xxx_mdx_plugin_recma_jsx_rewrite.rs b/tests/xxx_mdx_plugin_recma_jsx_rewrite.rs
index d78e5c8..77c794a 100644
--- a/tests/xxx_mdx_plugin_recma_jsx_rewrite.rs
+++ b/tests/xxx_mdx_plugin_recma_jsx_rewrite.rs
@@ -1,7 +1,3 @@
-extern crate markdown;
-extern crate swc_common;
-extern crate swc_ecma_ast;
-extern crate swc_ecma_codegen;
mod test_utils;
use markdown::{to_mdast, Location, ParseOptions};
use pretty_assertions::assert_eq;