Skip to content

Commit 134d0cc

Browse files
committed
Add tests for exposed identifiers
1 parent 34fd4b7 commit 134d0cc

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,15 @@ import assert from 'node:assert/strict'
22
import test from 'node:test'
33
import {u} from 'unist-builder'
44
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+
)
513

6-
test('xast-util-to-string', () => {
714
assert.deepEqual(
815
toString(u('cdata', '<greeting>Hello, world!</greeting>')),
916
'<greeting>Hello, world!</greeting>',

0 commit comments

Comments
 (0)