Skip to content

Commit 7d811fe

Browse files
committed
Add tests for exposed identifiers
1 parent c6b68af commit 7d811fe

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/index.js

+12
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,15 @@ import './doctype.js'
88
import './text.js'
99
import './comment.js'
1010
/* eslint-enable import/no-unassigned-import */
11+
12+
import nodeAssert from 'node:assert/strict'
13+
import test from 'node:test'
14+
import * as mod from '../index.js'
15+
16+
test('api', () => {
17+
nodeAssert.deepEqual(
18+
Object.keys(mod).sort(),
19+
['_void', 'assert', 'literal', 'parent', 'wrap'],
20+
'should expose the public api'
21+
)
22+
})

0 commit comments

Comments
 (0)