Skip to content

Commit cf980b2

Browse files
committed
Add tests for exposed identifiers
1 parent 6c4f2ef commit cf980b2

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
@@ -3,8 +3,15 @@ import test from 'node:test'
33
import {u} from 'unist-builder'
44
import {h} from 'hastscript'
55
import {classnames} from './index.js'
6+
import * as mod from './index.js'
7+
8+
test('classnames', () => {
9+
assert.deepEqual(
10+
Object.keys(mod).sort(),
11+
['classnames'],
12+
'should expose the public api'
13+
)
614

7-
test('hast-util-classnames', () => {
815
assert.throws(
916
() => {
1017
classnames(u('comment', '?'))

0 commit comments

Comments
 (0)