File tree Expand file tree Collapse file tree 1 file changed +7
-19
lines changed Expand file tree Collapse file tree 1 file changed +7
-19
lines changed Original file line number Diff line number Diff line change @@ -439,32 +439,20 @@ test('markdown -> mdast', function (t) {
439
439
'should crash on invalid JS in an attribute expression'
440
440
)
441
441
442
- t . deepEqual (
443
- removePosition (
442
+ t . throws (
443
+ function ( ) {
444
444
fromMarkdown ( 'a < \t>b</>' , {
445
- extensions : [ syntax ( ) ] ,
445
+ extensions : [ syntax ( { acorn : acorn } ) ] ,
446
446
mdastExtensions : [ mdxJsx . fromMarkdown ]
447
- } ) ,
448
- true
449
- ) . children [ 0 ] ,
450
- {
451
- type : 'paragraph' ,
452
- children : [
453
- { type : 'text' , value : 'a ' } ,
454
- {
455
- type : 'mdxJsxTextElement' ,
456
- name : null ,
457
- attributes : [ ] ,
458
- children : [ { type : 'text' , value : 'b' } ]
459
- }
460
- ]
447
+ } )
461
448
} ,
462
- 'should support whitespace in the opening tag (fragment)'
449
+ / U n e x p e c t e d c l o s i n g s l a s h ` \/ ` i n t a g , e x p e c t e d a n o p e n t a g f i r s t / ,
450
+ 'should *not* support whitespace in the opening tag (fragment)'
463
451
)
464
452
465
453
t . deepEqual (
466
454
removePosition (
467
- fromMarkdown ( 'a < \nb \t>c</b>' , {
455
+ fromMarkdown ( 'a <b \t>c</b>' , {
468
456
extensions : [ syntax ( ) ] ,
469
457
mdastExtensions : [ mdxJsx . fromMarkdown ]
470
458
} ) ,
You can’t perform that action at this time.
0 commit comments