Skip to content

Commit 309ba4b

Browse files
committed
Add tests for exposed identifiers
1 parent 46dc069 commit 309ba4b

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
@@ -7,12 +7,19 @@ import assert from 'node:assert/strict'
77
import test from 'node:test'
88
import {fromMarkdown} from 'mdast-util-from-markdown'
99
import {findAfter} from './index.js'
10+
import * as mod from './index.js'
1011

1112
const tree = fromMarkdown('Some _emphasis_, **importance**, and `code`.')
1213
const paragraph = /** @type {Parent} */ (tree.children[0])
1314
const children = paragraph.children
1415

15-
test('unist-util-find-after', () => {
16+
test('findAfter', () => {
17+
assert.deepEqual(
18+
Object.keys(mod).sort(),
19+
['findAfter'],
20+
'should expose the public api'
21+
)
22+
1623
assert.throws(
1724
() => {
1825
// @ts-expect-error runtime.

0 commit comments

Comments
 (0)