File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 32
32
],
33
33
"sideEffects" : false ,
34
34
"type" : " module" ,
35
- "main" : " index.js" ,
36
- "types" : " index.d.ts" ,
35
+ "exports" : " ./index.js" ,
37
36
"files" : [
38
37
" lib/" ,
39
38
" index.d.ts" ,
Original file line number Diff line number Diff line change 1
1
import assert from 'node:assert/strict'
2
2
import test from 'node:test'
3
+ import { squeezeParagraphs } from 'mdast-squeeze-paragraphs'
3
4
import { u } from 'unist-builder'
4
- import { squeezeParagraphs } from './index.js'
5
5
6
6
test ( 'squeezeParagraphs' , async function ( t ) {
7
+ await t . test ( 'should expose the public api' , async function ( ) {
8
+ assert . deepEqual (
9
+ Object . keys ( await import ( 'mdast-squeeze-paragraphs' ) ) . sort ( ) ,
10
+ [ 'squeezeParagraphs' ]
11
+ )
12
+ } )
13
+
7
14
await t . test ( 'should work on a tree' , async function ( ) {
8
15
const tree = u ( 'root' , [
9
16
u ( 'paragraph' , [ ] ) ,
You can’t perform that action at this time.
0 commit comments