File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 2424  ],
2525  "sideEffects" : false ,
2626  "type" : " module" 
27-   "main" : " index.js" 
28-   "types" : " index.d.ts" 
27+   "exports" : " ./index.js" 
2928  "files" : [
3029    " lib/" 
3130    " index.d.ts" 
Original file line number Diff line number Diff line change 55import  assert  from  'node:assert/strict' 
66import  test  from  'node:test' 
77import  { fromMarkdown }  from  'mdast-util-from-markdown' 
8- import  { findBefore }  from  './index.js ' 
8+ import  { findBefore }  from  'unist-util-find-before ' 
99
1010test ( '`findBefore`' ,  async  function  ( t )  { 
11+   await  t . test ( 'should expose the public api' ,  async  function  ( )  { 
12+     assert . deepEqual ( 
13+       Object . keys ( await  import ( 'unist-util-find-before' ) ) . sort ( ) , 
14+       [ 'findBefore' ] 
15+     ) 
16+   } ) 
17+ 
1118  const  tree  =  fromMarkdown ( 'Some *emphasis*, **importance**, and `code`.' ) 
1219
1320  assert ( tree . type  ===  'root' ) 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments