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 e529f8e commit 192f4f9Copy full SHA for 192f4f9
test/index.js
@@ -11,12 +11,17 @@ import {webNamespaces} from 'web-namespaces'
11
import {h, s} from 'hastscript'
12
import serialize from 'w3c-xmlserializer'
13
import {toDom} from '../index.js'
14
+import * as mod from '../index.js'
15
16
const document = new JSDOM().window.document
17
18
globalThis.document = document
19
-test('hast-util-to-dom', () => {
20
+test('toDom', () => {
21
+ const api = Object.keys(mod)
22
+ assert.ok(api.includes('toDom'), 'should expose `toDom`')
23
+ assert.equal(api.length, 1, 'should expose the public api')
24
+
25
assert.equal(
26
// @ts-expect-error runtime.
27
serializeNodeToHtmlString(toDom({type: 'root'})),
0 commit comments