We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6016864 commit 9dab570Copy full SHA for 9dab570
test.js
@@ -9,8 +9,13 @@ import {mdxjs} from 'micromark-extension-mdxjs'
9
import {mdxFromMarkdown} from 'mdast-util-mdx'
10
import {toHast} from 'mdast-util-to-hast'
11
import {excerpt} from './index.js'
12
+import * as mod from './index.js'
13
14
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
+
19
assert.deepEqual(
20
excerpt(
21
h('div', [
0 commit comments