Skip to content

Commit 65378cd

Browse files
committed
Add tests for exposed identifiers
1 parent 2f27062 commit 65378cd

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/index.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,14 @@ import {fromHtml} from 'hast-util-from-html'
1212
import {toHtml} from 'hast-util-to-html'
1313
import {commonmark} from 'commonmark.json'
1414
import {fromMarkdown} from '../dev/index.js'
15+
import * as mod from '../dev/index.js'
1516

16-
test('mdast-util-from-markdown', () => {
17-
assert.equal(typeof fromMarkdown, 'function', 'should expose a function')
17+
test('fromMarkdown', () => {
18+
assert.deepEqual(
19+
Object.keys(mod).sort(),
20+
['fromMarkdown'],
21+
'should expose the public api'
22+
)
1823

1924
assert.deepEqual(
2025
fromMarkdown(''),

0 commit comments

Comments
 (0)