Skip to content

Commit 92f8a77

Browse files
committed
Add tests for exposed identifiers
1 parent 2be85f6 commit 92f8a77

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/index.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,14 @@ import {gfmFromMarkdown} from 'mdast-util-gfm'
1919
import {gfm} from 'micromark-extension-gfm'
2020
import {visit} from 'unist-util-visit'
2121
import {toc} from '../index.js'
22+
import * as mod from '../index.js'
2223

23-
test('mdast-util-toc', () => {
24-
assert.equal(typeof toc, 'function', 'should be a function')
24+
test('toc', () => {
25+
assert.deepEqual(
26+
Object.keys(mod).sort(),
27+
['toc'],
28+
'should expose the public api'
29+
)
2530

2631
assert.throws(
2732
() => {

0 commit comments

Comments
 (0)