We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12d74f9 commit 735093bCopy full SHA for 735093b
test/index.js
@@ -8,9 +8,14 @@ import process from 'node:process'
8
import test from 'node:test'
9
import {isHidden} from 'is-hidden'
10
import {fromXml} from '../index.js'
11
+import * as mod from '../index.js'
12
13
test('fromXml', () => {
- 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
+ )
19
20
try {
21
fromXml('<root unquoted=attribute>')
0 commit comments