Skip to content

Commit fbb5ebb

Browse files
committed
Add tests for exposed identifiers
1 parent e0f582e commit fbb5ebb

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
@@ -9,3 +9,15 @@ import './parent.js'
99
import './literal.js'
1010
import './void.js'
1111
/* eslint-enable import/no-unassigned-import */
12+
13+
import assert from 'node:assert/strict'
14+
import test from 'node:test'
15+
import * as mod from '../index.js'
16+
17+
test('assert', () => {
18+
assert.deepEqual(
19+
Object.keys(mod).sort(),
20+
['_void', 'assert', 'literal', 'parent', 'wrap'],
21+
'should expose the public api'
22+
)
23+
})

0 commit comments

Comments
 (0)