Skip to content

Commit 58b61c9

Browse files
committed
Add tests for exposed identifiers
1 parent 8b64821 commit 58b61c9

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
@@ -24,6 +24,7 @@ import {mdxFromMarkdown} from 'mdast-util-mdx'
2424
import {mdxjs} from 'micromark-extension-mdxjs'
2525
import {visit} from 'unist-util-visit'
2626
import {toEstree} from './index.js'
27+
import * as mod from './index.js'
2728

2829
/** @type {(value: unknown, options?: import('@babel/generator').GeneratorOptions) => {code: string}} */
2930
// @ts-expect-error Types are wrong.
@@ -38,7 +39,13 @@ const passThrough = [
3839
'mdxjsEsm'
3940
]
4041

41-
test('hast-util-to-estree', () => {
42+
test('toEstree', () => {
43+
assert.deepEqual(
44+
Object.keys(mod).sort(),
45+
['toEstree'],
46+
'should expose the public api'
47+
)
48+
4249
assert.throws(
4350
() => {
4451
// @ts-expect-error: runtime.

0 commit comments

Comments
 (0)