Skip to content

Commit d6a45ed

Browse files
committed
Add tests for exposed identifiers
1 parent 4bc33da commit d6a45ed

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: test/core.js

+7
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@ import test from 'node:test'
33
import {u} from 'unist-builder'
44
import {h} from 'hastscript'
55
import {toHtml} from '../index.js'
6+
import * as mod from '../index.js'
67

78
test('toHtml()', () => {
9+
assert.deepEqual(
10+
Object.keys(mod).sort(),
11+
['toHtml'],
12+
'should expose the public api'
13+
)
14+
815
assert.throws(
916
() => {
1017
// @ts-expect-error runtime.

0 commit comments

Comments
 (0)