Skip to content

Commit c01272c

Browse files
committed
Add tests for exposed identifiers
1 parent a19c158 commit c01272c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,15 @@ import assert from 'node:assert/strict'
99
import test from 'node:test'
1010
import {u} from 'unist-builder'
1111
import {map} from './index.js'
12+
import * as mod from './index.js'
1213

1314
test('map', function () {
15+
assert.deepEqual(
16+
Object.keys(mod).sort(),
17+
['map'],
18+
'should expose the public api'
19+
)
20+
1421
/** @type {Root} */
1522
const rootA = u('root', [u('node', [u('leaf', '1')]), u('leaf', '2')])
1623
assert.deepEqual(

0 commit comments

Comments
 (0)