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 f27fdd2 commit b70a803Copy full SHA for b70a803
test.js
@@ -3,8 +3,13 @@ import test from 'node:test'
3
import {u} from 'unist-builder'
4
import {h} from 'hastscript'
5
import {toText} from './index.js'
6
+import * as mod from './index.js'
7
8
test('toText', () => {
9
+ const api = Object.keys(mod)
10
+ assert.ok(api.includes('toText'), 'should expose `toText`')
11
+ assert.equal(api.length, 1, 'should expose the public api')
12
+
13
assert.equal(
14
toText(h('div', 'a\n b\t\nc')),
15
'a b c',
0 commit comments