Skip to content

Commit a802741

Browse files
committed
Add tests for exposed identifiers
1 parent b2747fb commit a802741

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/index.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
import nodeAssert from 'node:assert/strict'
2+
import test from 'node:test'
3+
import * as mod from '../index.js'
4+
15
/* eslint-disable import/no-unassigned-import */
26
import './node.js'
37
import './children.js'
@@ -15,3 +19,11 @@ import './image-reference.js'
1519
import './footnote-reference.js'
1620
import './table.js'
1721
/* eslint-enable import/no-unassigned-import */
22+
23+
test('assert', () => {
24+
nodeAssert.deepEqual(
25+
Object.keys(mod).sort(),
26+
['_void', 'assert', 'literal', 'parent', 'wrap'],
27+
'should expose the public api'
28+
)
29+
})

0 commit comments

Comments
 (0)