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 058eea4 commit 6d0d55bCopy full SHA for 6d0d55b
test.js
@@ -5,10 +5,17 @@ import {h, s} from 'hastscript'
5
import {u} from 'unist-builder'
6
import deepmerge from 'deepmerge'
7
import {sanitize, defaultSchema} from './index.js'
8
+import * as mod from './index.js'
9
10
const own = {}.hasOwnProperty
11
12
test('sanitize()', async (t) => {
13
+ assert.deepEqual(
14
+ Object.keys(mod).sort(),
15
+ ['defaultSchema', 'sanitize'],
16
+ 'should expose the public api'
17
+ )
18
+
19
await t.test('non-node', () => {
20
// @ts-expect-error runtime.
21
assert.equal(toHtml(sanitize(true)), '', 'should ignore non-nodes (#1)')
0 commit comments