File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 26
26
],
27
27
"sideEffects" : false ,
28
28
"type" : " module" ,
29
- "main" : " index.js" ,
30
- "types" : " index.d.ts" ,
29
+ "exports" : " ./index.js" ,
31
30
"files" : [
32
31
" lib/" ,
33
32
" index.d.ts" ,
Original file line number Diff line number Diff line change @@ -8,17 +8,19 @@ import process from 'node:process'
8
8
import test from 'node:test'
9
9
import { JSDOM } from 'jsdom'
10
10
import { h , s } from 'hastscript'
11
+ import { toDom } from 'hast-util-to-dom'
11
12
import serialize from 'w3c-xmlserializer'
12
13
import { webNamespaces } from 'web-namespaces'
13
- import { toDom } from '../index.js'
14
14
15
15
const document = new JSDOM ( ) . window . document
16
16
17
17
globalThis . document = document
18
18
19
19
test ( 'toDom' , async function ( t ) {
20
20
await t . test ( 'should expose the public api' , async function ( ) {
21
- assert . deepEqual ( Object . keys ( await import ( '../index.js' ) ) . sort ( ) , [ 'toDom' ] )
21
+ assert . deepEqual ( Object . keys ( await import ( 'hast-util-to-dom' ) ) . sort ( ) , [
22
+ 'toDom'
23
+ ] )
22
24
} )
23
25
24
26
await t . test ( 'should create an empty root node' , async function ( ) {
You can’t perform that action at this time.
0 commit comments