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 34fd4b7 commit 134d0ccCopy full SHA for 134d0cc
test.js
@@ -2,8 +2,15 @@ import assert from 'node:assert/strict'
2
import test from 'node:test'
3
import {u} from 'unist-builder'
4
import {toString} from './index.js'
5
+import * as mod from './index.js'
6
+
7
+test('toString', () => {
8
+ assert.deepEqual(
9
+ Object.keys(mod).sort(),
10
+ ['toString'],
11
+ 'should expose the public api'
12
+ )
13
-test('xast-util-to-string', () => {
14
assert.deepEqual(
15
toString(u('cdata', '<greeting>Hello, world!</greeting>')),
16
'<greeting>Hello, world!</greeting>',
0 commit comments