File tree Expand file tree Collapse file tree 10 files changed +10
-11
lines changed Expand file tree Collapse file tree 10 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 2525 ],
2626 "sideEffects" : false ,
2727 "type" : " module" ,
28- "main" : " index.js" ,
29- "types" : " index.d.ts" ,
28+ "exports" : " ./index.js" ,
3029 "files" : [
3130 " lib/" ,
3231 " index.d.ts" ,
Original file line number Diff line number Diff line change 11import nodeAssert from 'node:assert/strict'
22import test from 'node:test'
3- import { assert } from '../index.js '
3+ import { assert } from 'hast-util-assert '
44
55test ( 'children' , async function ( t ) {
66 await t . test (
Original file line number Diff line number Diff line change 11import nodeAssert from 'node:assert/strict'
22import test from 'node:test'
3- import { assert } from '../index.js '
3+ import { assert } from 'hast-util-assert '
44
55test ( 'assert(comment)' , async function ( t ) {
66 await t . test (
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import test from 'node:test'
33
44test ( 'api' , async function ( t ) {
55 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 ( ) , [
77 '_void' ,
88 'assert' ,
99 'literal' ,
Original file line number Diff line number Diff line change 11import nodeAssert from 'node:assert/strict'
22import test from 'node:test'
3- import { assert } from '../index.js '
3+ import { assert } from 'hast-util-assert '
44
55test ( 'assert(doctype)' , async function ( t ) {
66 await t . test ( 'should allow doctypes' , async function ( ) {
Original file line number Diff line number Diff line change 11import nodeAssert from 'node:assert/strict'
22import test from 'node:test'
3- import { assert } from '../index.js '
3+ import { assert } from 'hast-util-assert '
44
55test ( 'assert(element)' , async function ( t ) {
66 await t . test (
Original file line number Diff line number Diff line change 11import nodeAssert from 'node:assert/strict'
22import test from 'node:test'
3- import { assert } from '../index.js '
3+ import { assert } from 'hast-util-assert '
44
55test ( 'node' , async function ( t ) {
66 await t . test ( 'should throw if not given a node (#1)' , async function ( ) {
Original file line number Diff line number Diff line change 11import nodeAssert from 'node:assert/strict'
22import test from 'node:test'
3- import { parent } from '../index.js '
3+ import { parent } from 'hast-util-assert '
44
55test ( 'parent' , async function ( t ) {
66 await t . test ( 'should throw if not given a node' , async function ( ) {
Original file line number Diff line number Diff line change 11import nodeAssert from 'node:assert/strict'
22import test from 'node:test'
3- import { assert } from '../index.js '
3+ import { assert } from 'hast-util-assert '
44
55test ( 'assert(root)' , async function ( t ) {
66 await t . test ( 'should throw if a `root` is not a parent' , async function ( ) {
Original file line number Diff line number Diff line change 11import nodeAssert from 'node:assert/strict'
22import test from 'node:test'
3- import { assert } from '../index.js '
3+ import { assert } from 'hast-util-assert '
44
55test ( 'assert(text)' , async function ( t ) {
66 await t . test (
You can’t perform that action at this time.
0 commit comments