File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
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 1
1
import assert from 'node:assert/strict'
2
2
import test from 'node:test'
3
- import { hasProperty } from './index.js '
3
+ import { hasProperty } from 'hast-util-has-property '
4
4
5
5
test ( 'hasProperty' , async function ( t ) {
6
6
await t . test ( 'should expose the public api' , async function ( ) {
7
- assert . deepEqual ( Object . keys ( await import ( './index.js' ) ) . sort ( ) , [
8
- 'hasProperty'
9
- ] )
7
+ assert . deepEqual (
8
+ Object . keys ( await import ( 'hast-util-has-property' ) ) . sort ( ) ,
9
+ [ 'hasProperty' ]
10
+ )
10
11
} )
11
12
12
13
await t . test ( 'should return `false` without `element`' , async function ( ) {
You can’t perform that action at this time.
0 commit comments