Skip to content

Commit 8fb37e4

Browse files
committed
Add tests for exposed identifiers
1 parent a869bb5 commit 8fb37e4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/main.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,15 @@
66
import assert from 'node:assert/strict'
77
import test from 'node:test'
88
import {is} from '../index.js'
9+
import * as mod from '../index.js'
910

1011
test('is', async (t) => {
12+
assert.deepEqual(
13+
Object.keys(mod).sort(),
14+
['convert', 'is'],
15+
'should expose the public api'
16+
)
17+
1118
const node = {type: 'strong'}
1219
const parent = {type: 'paragraph', children: []}
1320

0 commit comments

Comments
 (0)