Skip to content

Commit 9dab570

Browse files
committed
Add tests for exposed identifiers
1 parent 6016864 commit 9dab570

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ import {mdxjs} from 'micromark-extension-mdxjs'
99
import {mdxFromMarkdown} from 'mdast-util-mdx'
1010
import {toHast} from 'mdast-util-to-hast'
1111
import {excerpt} from './index.js'
12+
import * as mod from './index.js'
1213

1314
test('excerpt', () => {
15+
const api = Object.keys(mod)
16+
assert.ok(api.includes('excerpt'), 'should expose `excerpt`')
17+
assert.equal(api.length, 1, 'should expose the public api')
18+
1419
assert.deepEqual(
1520
excerpt(
1621
h('div', [

0 commit comments

Comments
 (0)