Skip to content

Commit 83df9b3

Browse files
committed
Add tests for exposed identifiers
1 parent 169f938 commit 83df9b3

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,6 +9,7 @@ import {fromMarkdown} from 'mdast-util-from-markdown'
99
import {gfmFromMarkdown} from 'mdast-util-gfm'
1010
import {gfm} from 'micromark-extension-gfm'
1111
import {visit, CONTINUE, EXIT, SKIP} from './index.js'
12+
import * as mod from './index.js'
1213

1314
const tree = fromMarkdown('Some _emphasis_, **importance**, and `code`.')
1415

@@ -47,7 +48,13 @@ const reverseTypes = [
4748
'text'
4849
]
4950

50-
test('visit', async (t) => {
51+
test('visit', async function (t) {
52+
assert.deepEqual(
53+
Object.keys(mod).sort(),
54+
['CONTINUE', 'EXIT', 'SKIP', 'visit'],
55+
'should expose the public api'
56+
)
57+
5158
assert.throws(
5259
() => {
5360
// @ts-expect-error runtime.

0 commit comments

Comments
 (0)