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 36f5956 commit 23da80eCopy full SHA for 23da80e
test/index.js
@@ -10,11 +10,18 @@ import process from 'node:process'
10
import test from 'node:test'
11
import {JSDOM} from 'jsdom'
12
import {fromDom} from '../index.js'
13
+import * as mod from '../index.js'
14
15
const window = new JSDOM().window
16
globalThis.document = window.document
17
-test('hast-util-from-dom', () => {
18
+test('fromDom', () => {
19
+ assert.deepEqual(
20
+ Object.keys(mod).sort(),
21
+ ['fromDom'],
22
+ 'should expose the public api'
23
+ )
24
+
25
assert.deepEqual(
26
fromDom(doc('<title>Hello!</title><h1>World!')),
27
{
0 commit comments