Skip to content

Commit 282e12d

Browse files
committed
Add tests for exposed identifiers
1 parent 758bd5c commit 282e12d

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
@@ -13,8 +13,15 @@ import test from 'node:test'
1313
import {ParseEnglish} from 'parse-english'
1414
import {visit} from 'unist-util-visit'
1515
import {isLiteral} from './index.js'
16+
import * as mod from './index.js'
1617

1718
test('isLiteral()', () => {
19+
assert.deepEqual(
20+
Object.keys(mod).sort(),
21+
['isLiteral'],
22+
'should expose the public api'
23+
)
24+
1825
assert.throws(
1926
() => {
2027
// @ts-expect-error runtime.

0 commit comments

Comments
 (0)