Skip to content

Commit e468aee

Browse files
committed
Add tests for exposed identifiers
1 parent 6e18e20 commit e468aee

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,15 @@ import assert from 'node:assert/strict'
22
import test from 'node:test'
33
import {fromMarkdown} from 'mdast-util-from-markdown'
44
import {definitions} from './index.js'
5+
import * as mod from './index.js'
6+
7+
test('definitions', () => {
8+
assert.deepEqual(
9+
Object.keys(mod).sort(),
10+
['definitions'],
11+
'should expose the public api'
12+
)
513

6-
test('mdast-util-definitions', () => {
714
assert.throws(
815
() => {
916
// @ts-expect-error runtime

0 commit comments

Comments
 (0)