Skip to content

Commit 01aeb1f

Browse files
committed
Add tests for exposed identifiers
1 parent 415ce7b commit 01aeb1f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test.js

+9
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ import assert from 'node:assert/strict'
77
import test from 'node:test'
88
import {u} from 'unist-builder'
99
import {remove} from './index.js'
10+
import * as mod from './index.js'
11+
12+
test('core', () => {
13+
assert.deepEqual(
14+
Object.keys(mod).sort(),
15+
['remove'],
16+
'should expose the public api'
17+
)
18+
})
1019

1120
test('should compare nodes by partial properties', () => {
1221
const tree = u('node', [u('leaf', '1'), u('leaf', '2')])

0 commit comments

Comments
 (0)