Skip to content

Commit 735093b

Browse files
committed
Add tests for exposed identifiers
1 parent 12d74f9 commit 735093b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: test/index.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,14 @@ import process from 'node:process'
88
import test from 'node:test'
99
import {isHidden} from 'is-hidden'
1010
import {fromXml} from '../index.js'
11+
import * as mod from '../index.js'
1112

1213
test('fromXml', () => {
13-
assert.equal(typeof fromXml, 'function', 'should expose a function')
14+
assert.deepEqual(
15+
Object.keys(mod).sort(),
16+
['fromXml'],
17+
'should expose the public api'
18+
)
1419

1520
try {
1621
fromXml('<root unquoted=attribute>')

0 commit comments

Comments
 (0)