Skip to content

Commit 945cf49

Browse files
committed
Add tests for exposed identifiers
1 parent 8afd67c commit 945cf49

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,15 @@ import {u} from 'unist-builder'
55
import {h, s} from 'hastscript'
66
import {x} from 'xastscript'
77
import {toXast} from './index.js'
8+
import * as mod from './index.js'
89

910
test('toXast', async (t) => {
11+
assert.deepEqual(
12+
Object.keys(mod).sort(),
13+
['toXast'],
14+
'should expose the public api'
15+
)
16+
1017
await t.test('main', () => {
1118
assert.equal(typeof toXast, 'function', 'should expose a function')
1219

0 commit comments

Comments
 (0)