Skip to content

Commit b8dd250

Browse files
committed
Add tests for exposed identifiers
1 parent 2216801 commit b8dd250

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: test.js

+7
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 {findAndReplace} from './index.js'
5+
import * as mod from './index.js'
56

67
test('findAndReplace', () => {
8+
assert.deepEqual(
9+
Object.keys(mod).sort(),
10+
['findAndReplace'],
11+
'should expose the public api'
12+
)
13+
714
assert.throws(
815
() => {
916
// @ts-expect-error runtime.

0 commit comments

Comments
 (0)