We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c358e3 commit d7d5849Copy full SHA for d7d5849
test.js
@@ -6,8 +6,14 @@
6
import assert from 'node:assert/strict'
7
import test from 'node:test'
8
import {isElement} from './index.js'
9
+import * as mod from './index.js'
10
11
test('isElement', async (t) => {
12
+ const api = Object.keys(mod)
13
+ assert.ok(api.includes('isElement'), 'should expose `isElement`')
14
+ assert.ok(api.includes('convertElement'), 'should expose `convertElement`')
15
+ assert.equal(api.length, 2, 'should expose the public api')
16
+
17
assert.equal(isElement(), false, 'should return `false` without node')
18
assert.equal(isElement(null), false, 'should return `false` with `null`')
19
0 commit comments