Skip to content

Commit 23da80e

Browse files
committed
Add tests for exposed identifiers
1 parent 36f5956 commit 23da80e

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
@@ -10,11 +10,18 @@ import process from 'node:process'
1010
import test from 'node:test'
1111
import {JSDOM} from 'jsdom'
1212
import {fromDom} from '../index.js'
13+
import * as mod from '../index.js'
1314

1415
const window = new JSDOM().window
1516
globalThis.document = window.document
1617

17-
test('hast-util-from-dom', () => {
18+
test('fromDom', () => {
19+
assert.deepEqual(
20+
Object.keys(mod).sort(),
21+
['fromDom'],
22+
'should expose the public api'
23+
)
24+
1825
assert.deepEqual(
1926
fromDom(doc('<title>Hello!</title><h1>World!')),
2027
{

0 commit comments

Comments
 (0)