Skip to content

Commit 3ca1ead

Browse files
committed
Add tests for exposed identifiers
1 parent 774976e commit 3ca1ead

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Diff for: test/index.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,16 @@ import test from 'node:test'
88
import {VFile} from 'vfile'
99
import {toVFile, read} from 'to-vfile'
1010
import {fromHtml} from '../index.js'
11+
import * as mod from '../index.js'
1112
import {errors as rerrors} from '../lib/errors.js'
1213

13-
test('hast-util-from-html', () => {
14+
test('fromHtml', () => {
15+
assert.deepEqual(
16+
Object.keys(mod).sort(),
17+
['fromHtml'],
18+
'should expose the public api'
19+
)
20+
1421
assert.deepEqual(
1522
fromHtml('a'),
1623
{

0 commit comments

Comments
 (0)