Skip to content

Commit 8d71bdd

Browse files
committed
Add tests for exposed identifiers
1 parent f0f623c commit 8d71bdd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@ import test from 'node:test'
33
import stringify from 'json-stringify-safe'
44
import {parse, parseFragment} from 'parse5'
55
import {toParse5} from './index.js'
6+
import * as mod from './index.js'
7+
8+
test('toParse5', () => {
9+
assert.deepEqual(
10+
Object.keys(mod).sort(),
11+
['toParse5'],
12+
'should expose the public api'
13+
)
614

7-
test('core', () => {
815
assert.deepEqual(
916
json(
1017
toParse5({

0 commit comments

Comments
 (0)