@@ -6,7 +6,7 @@ import {removePosition} from 'unist-util-remove-position'
66import mdxJsx from 'micromark-extension-mdx-jsx'
77import { mdxJsxFromMarkdown , mdxJsxToMarkdown } from './index.js'
88
9- test ( 'markdown -> mdast' , function ( t ) {
9+ test ( 'markdown -> mdast' , ( t ) => {
1010 t . deepEqual (
1111 fromMarkdown ( '<a />' , {
1212 extensions : [ mdxJsx ( ) ] ,
@@ -152,7 +152,7 @@ test('markdown -> mdast', function (t) {
152152 )
153153
154154 t . throws (
155- function ( ) {
155+ ( ) => {
156156 fromMarkdown ( 'a <b> c' , {
157157 extensions : [ mdxJsx ( ) ] ,
158158 mdastExtensions : [ mdxJsxFromMarkdown ]
@@ -163,7 +163,7 @@ test('markdown -> mdast', function (t) {
163163 )
164164
165165 t . throws (
166- function ( ) {
166+ ( ) => {
167167 fromMarkdown ( '<a>' , {
168168 extensions : [ mdxJsx ( ) ] ,
169169 mdastExtensions : [ mdxJsxFromMarkdown ]
@@ -418,7 +418,7 @@ test('markdown -> mdast', function (t) {
418418 )
419419
420420 t . throws (
421- function ( ) {
421+ ( ) => {
422422 fromMarkdown ( 'a <b {1 + 1} /> c' , {
423423 extensions : [ mdxJsx ( { acorn} ) ] ,
424424 mdastExtensions : [ mdxJsxFromMarkdown ]
@@ -429,7 +429,7 @@ test('markdown -> mdast', function (t) {
429429 )
430430
431431 t . throws (
432- function ( ) {
432+ ( ) => {
433433 fromMarkdown ( 'a <b c={?} /> d' , {
434434 extensions : [ mdxJsx ( { acorn} ) ] ,
435435 mdastExtensions : [ mdxJsxFromMarkdown ]
@@ -440,7 +440,7 @@ test('markdown -> mdast', function (t) {
440440 )
441441
442442 t . throws (
443- function ( ) {
443+ ( ) => {
444444 fromMarkdown ( 'a < \t>b</>' , {
445445 extensions : [ mdxJsx ( { acorn} ) ] ,
446446 mdastExtensions : [ mdxJsxFromMarkdown ]
@@ -648,7 +648,7 @@ test('markdown -> mdast', function (t) {
648648 )
649649
650650 t . throws (
651- function ( ) {
651+ ( ) => {
652652 fromMarkdown ( 'a </> c' , {
653653 extensions : [ mdxJsx ( ) ] ,
654654 mdastExtensions : [ mdxJsxFromMarkdown ]
@@ -659,7 +659,7 @@ test('markdown -> mdast', function (t) {
659659 )
660660
661661 t . throws (
662- function ( ) {
662+ ( ) => {
663663 fromMarkdown ( '</>' , {
664664 extensions : [ mdxJsx ( ) ] ,
665665 mdastExtensions : [ mdxJsxFromMarkdown ]
@@ -670,7 +670,7 @@ test('markdown -> mdast', function (t) {
670670 )
671671
672672 t . throws (
673- function ( ) {
673+ ( ) => {
674674 fromMarkdown ( 'a <></b>' , {
675675 extensions : [ mdxJsx ( ) ] ,
676676 mdastExtensions : [ mdxJsxFromMarkdown ]
@@ -680,7 +680,7 @@ test('markdown -> mdast', function (t) {
680680 'should crash on mismatched tags (1)'
681681 )
682682 t . throws (
683- function ( ) {
683+ ( ) => {
684684 fromMarkdown ( 'a <b></>' , {
685685 extensions : [ mdxJsx ( ) ] ,
686686 mdastExtensions : [ mdxJsxFromMarkdown ]
@@ -690,7 +690,7 @@ test('markdown -> mdast', function (t) {
690690 'should crash on mismatched tags (2)'
691691 )
692692 t . throws (
693- function ( ) {
693+ ( ) => {
694694 fromMarkdown ( 'a <a.b></a>' , {
695695 extensions : [ mdxJsx ( ) ] ,
696696 mdastExtensions : [ mdxJsxFromMarkdown ]
@@ -700,7 +700,7 @@ test('markdown -> mdast', function (t) {
700700 'should crash on mismatched tags (3)'
701701 )
702702 t . throws (
703- function ( ) {
703+ ( ) => {
704704 fromMarkdown ( 'a <a></a.b>' , {
705705 extensions : [ mdxJsx ( ) ] ,
706706 mdastExtensions : [ mdxJsxFromMarkdown ]
@@ -710,7 +710,7 @@ test('markdown -> mdast', function (t) {
710710 'should crash on mismatched tags (4)'
711711 )
712712 t . throws (
713- function ( ) {
713+ ( ) => {
714714 fromMarkdown ( 'a <a.b></a.c>' , {
715715 extensions : [ mdxJsx ( ) ] ,
716716 mdastExtensions : [ mdxJsxFromMarkdown ]
@@ -720,7 +720,7 @@ test('markdown -> mdast', function (t) {
720720 'should crash on mismatched tags (5)'
721721 )
722722 t . throws (
723- function ( ) {
723+ ( ) => {
724724 fromMarkdown ( 'a <a:b></a>' , {
725725 extensions : [ mdxJsx ( ) ] ,
726726 mdastExtensions : [ mdxJsxFromMarkdown ]
@@ -730,7 +730,7 @@ test('markdown -> mdast', function (t) {
730730 'should crash on mismatched tags (6)'
731731 )
732732 t . throws (
733- function ( ) {
733+ ( ) => {
734734 fromMarkdown ( 'a <a></a:b>' , {
735735 extensions : [ mdxJsx ( ) ] ,
736736 mdastExtensions : [ mdxJsxFromMarkdown ]
@@ -740,7 +740,7 @@ test('markdown -> mdast', function (t) {
740740 'should crash on mismatched tags (7)'
741741 )
742742 t . throws (
743- function ( ) {
743+ ( ) => {
744744 fromMarkdown ( 'a <a:b></a:c>' , {
745745 extensions : [ mdxJsx ( ) ] ,
746746 mdastExtensions : [ mdxJsxFromMarkdown ]
@@ -750,7 +750,7 @@ test('markdown -> mdast', function (t) {
750750 'should crash on mismatched tags (8)'
751751 )
752752 t . throws (
753- function ( ) {
753+ ( ) => {
754754 fromMarkdown ( 'a <a:b></a.b>' , {
755755 extensions : [ mdxJsx ( ) ] ,
756756 mdastExtensions : [ mdxJsxFromMarkdown ]
@@ -761,7 +761,7 @@ test('markdown -> mdast', function (t) {
761761 )
762762
763763 t . throws (
764- function ( ) {
764+ ( ) => {
765765 fromMarkdown ( '<a>b</a/>' , {
766766 extensions : [ mdxJsx ( ) ] ,
767767 mdastExtensions : [ mdxJsxFromMarkdown ]
@@ -772,7 +772,7 @@ test('markdown -> mdast', function (t) {
772772 )
773773
774774 t . throws (
775- function ( ) {
775+ ( ) => {
776776 fromMarkdown ( '<a>b</a b>' , {
777777 extensions : [ mdxJsx ( ) ] ,
778778 mdastExtensions : [ mdxJsxFromMarkdown ]
@@ -904,7 +904,7 @@ test('markdown -> mdast', function (t) {
904904 )
905905
906906 t . throws (
907- function ( ) {
907+ ( ) => {
908908 fromMarkdown ( 'a *open <b> close* </b> c.' , {
909909 extensions : [ mdxJsx ( ) ] ,
910910 mdastExtensions : [ mdxJsxFromMarkdown ]
@@ -915,7 +915,7 @@ test('markdown -> mdast', function (t) {
915915 )
916916
917917 t . throws (
918- function ( ) {
918+ ( ) => {
919919 fromMarkdown ( 'a **open <b> close** </b> c.' , {
920920 extensions : [ mdxJsx ( ) ] ,
921921 mdastExtensions : [ mdxJsxFromMarkdown ]
@@ -926,7 +926,7 @@ test('markdown -> mdast', function (t) {
926926 )
927927
928928 t . throws (
929- function ( ) {
929+ ( ) => {
930930 fromMarkdown ( 'a [open <b> close](c) </b> d.' , {
931931 extensions : [ mdxJsx ( ) ] ,
932932 mdastExtensions : [ mdxJsxFromMarkdown ]
@@ -937,7 +937,7 @@ test('markdown -> mdast', function (t) {
937937 )
938938
939939 t . throws (
940- function ( ) {
940+ ( ) => {
941941 fromMarkdown ( 'a  </b> d.' , {
942942 extensions : [ mdxJsx ( ) ] ,
943943 mdastExtensions : [ mdxJsxFromMarkdown ]
@@ -1246,7 +1246,7 @@ test('markdown -> mdast', function (t) {
12461246 t . end ( )
12471247} )
12481248
1249- test ( 'mdast -> markdown' , function ( t ) {
1249+ test ( 'mdast -> markdown' , ( t ) => {
12501250 t . deepEqual (
12511251 toMarkdown ( { type : 'mdxJsxFlowElement' } , { extensions : [ mdxJsxToMarkdown ] } ) ,
12521252 '<></>\n' ,
@@ -1288,7 +1288,7 @@ test('mdast -> markdown', function (t) {
12881288 )
12891289
12901290 t . throws (
1291- function ( ) {
1291+ ( ) => {
12921292 toMarkdown (
12931293 {
12941294 type : 'mdxJsxFlowElement' ,
@@ -1371,7 +1371,7 @@ test('mdast -> markdown', function (t) {
13711371 )
13721372
13731373 t . throws (
1374- function ( ) {
1374+ ( ) => {
13751375 toMarkdown (
13761376 {
13771377 type : 'mdxJsxFlowElement' ,
0 commit comments