Skip to content

Commit cf188fc

Browse files
committed
Add tests for exposed identifiers
1 parent 3d2b533 commit cf188fc

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,8 +9,15 @@ import test from 'node:test'
99
import {fromMarkdown} from 'mdast-util-from-markdown'
1010
import {VFile} from 'vfile'
1111
import {source} from './index.js'
12+
import * as mod from './index.js'
13+
14+
test('source', () => {
15+
assert.deepEqual(
16+
Object.keys(mod).sort(),
17+
['source'],
18+
'should expose the public api'
19+
)
1220

13-
test('unist-util-source', () => {
1421
let file = new VFile('> + **[Hello](./example)**\n> world.')
1522
/** @type {Node} */
1623
let node = fromMarkdown(String(file))

0 commit comments

Comments
 (0)