File tree 10 files changed +10
-11
lines changed
10 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 25
25
],
26
26
"sideEffects" : false ,
27
27
"type" : " module" ,
28
- "main" : " index.js" ,
29
- "types" : " index.d.ts" ,
28
+ "exports" : " ./index.js" ,
30
29
"files" : [
31
30
" lib/" ,
32
31
" index.d.ts" ,
Original file line number Diff line number Diff line change 1
1
import nodeAssert from 'node:assert/strict'
2
2
import test from 'node:test'
3
- import { assert } from '../index.js '
3
+ import { assert } from 'hast-util-assert '
4
4
5
5
test ( 'children' , async function ( t ) {
6
6
await t . test (
Original file line number Diff line number Diff line change 1
1
import nodeAssert from 'node:assert/strict'
2
2
import test from 'node:test'
3
- import { assert } from '../index.js '
3
+ import { assert } from 'hast-util-assert '
4
4
5
5
test ( 'assert(comment)' , async function ( t ) {
6
6
await t . test (
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import test from 'node:test'
3
3
4
4
test ( 'api' , async function ( t ) {
5
5
await t . test ( 'should expose the public api' , async function ( ) {
6
- nodeAssert . deepEqual ( Object . keys ( await import ( '../index.js ' ) ) . sort ( ) , [
6
+ nodeAssert . deepEqual ( Object . keys ( await import ( 'hast-util-assert ' ) ) . sort ( ) , [
7
7
'_void' ,
8
8
'assert' ,
9
9
'literal' ,
Original file line number Diff line number Diff line change 1
1
import nodeAssert from 'node:assert/strict'
2
2
import test from 'node:test'
3
- import { assert } from '../index.js '
3
+ import { assert } from 'hast-util-assert '
4
4
5
5
test ( 'assert(doctype)' , async function ( t ) {
6
6
await t . test ( 'should allow doctypes' , async function ( ) {
Original file line number Diff line number Diff line change 1
1
import nodeAssert from 'node:assert/strict'
2
2
import test from 'node:test'
3
- import { assert } from '../index.js '
3
+ import { assert } from 'hast-util-assert '
4
4
5
5
test ( 'assert(element)' , async function ( t ) {
6
6
await t . test (
Original file line number Diff line number Diff line change 1
1
import nodeAssert from 'node:assert/strict'
2
2
import test from 'node:test'
3
- import { assert } from '../index.js '
3
+ import { assert } from 'hast-util-assert '
4
4
5
5
test ( 'node' , async function ( t ) {
6
6
await t . test ( 'should throw if not given a node (#1)' , async function ( ) {
Original file line number Diff line number Diff line change 1
1
import nodeAssert from 'node:assert/strict'
2
2
import test from 'node:test'
3
- import { parent } from '../index.js '
3
+ import { parent } from 'hast-util-assert '
4
4
5
5
test ( 'parent' , async function ( t ) {
6
6
await t . test ( 'should throw if not given a node' , async function ( ) {
Original file line number Diff line number Diff line change 1
1
import nodeAssert from 'node:assert/strict'
2
2
import test from 'node:test'
3
- import { assert } from '../index.js '
3
+ import { assert } from 'hast-util-assert '
4
4
5
5
test ( 'assert(root)' , async function ( t ) {
6
6
await t . test ( 'should throw if a `root` is not a parent' , async function ( ) {
Original file line number Diff line number Diff line change 1
1
import nodeAssert from 'node:assert/strict'
2
2
import test from 'node:test'
3
- import { assert } from '../index.js '
3
+ import { assert } from 'hast-util-assert '
4
4
5
5
test ( 'assert(text)' , async function ( t ) {
6
6
await t . test (
You can’t perform that action at this time.
0 commit comments