Skip to content

Commit 7ed530b

Browse files
committed
Add tests for exposed identifiers
1 parent 71a71e4 commit 7ed530b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test.js

+7
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,15 @@ import test from 'node:test'
88
import {u} from 'unist-builder'
99
import {select} from 'unist-util-select'
1010
import {Index} from './index.js'
11+
import * as mod from './index.js'
1112

1213
test('core', () => {
14+
assert.deepEqual(
15+
Object.keys(mod).sort(),
16+
['Index'],
17+
'should expose the public api'
18+
)
19+
1320
const node = {type: 'a', id: 1}
1421
const alt = {type: 'b', id: 1}
1522
const tree = {type: 'root', children: [node, alt]}

0 commit comments

Comments
 (0)