Skip to content

Commit e0e4b49

Browse files
committed
Add tests for exposed identifiers
1 parent 71bf8bd commit e0e4b49

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
@@ -3,3 +3,15 @@ import './node.js'
33
import './children.js'
44
import './root.js'
55
/* eslint-enable import/no-unassigned-import */
6+
7+
import nodeAssert from 'node:assert/strict'
8+
import test from 'node:test'
9+
import * as mod from '../index.js'
10+
11+
test('api', () => {
12+
nodeAssert.deepEqual(
13+
Object.keys(mod).sort(),
14+
['_void', 'assert', 'literal', 'parent', 'wrap'],
15+
'should expose the public api'
16+
)
17+
})

0 commit comments

Comments
 (0)