Skip to content

Commit 41cfd0c

Browse files
committed
Add tests for exposed identifiers
1 parent 5e35565 commit 41cfd0c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,15 @@ import test from 'node:test'
99
import {fromMarkdown} from 'mdast-util-from-markdown'
1010
import {toMarkdown} from 'mdast-util-to-markdown'
1111
import {headingRange} from './index.js'
12+
import * as mod from './index.js'
13+
14+
test('headingRange', () => {
15+
assert.deepEqual(
16+
Object.keys(mod).sort(),
17+
['headingRange'],
18+
'should expose the public api'
19+
)
1220

13-
test('mdast-util-heading-range()', () => {
1421
assert.equal(typeof headingRange, 'function', 'should be a function')
1522

1623
assert.throws(

0 commit comments

Comments
 (0)