Skip to content

Commit eadb7a8

Browse files
committed
Add tests for exposed identifiers
1 parent 0409b6a commit eadb7a8

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
@@ -3,8 +3,15 @@ import test from 'node:test'
33
import {fromMarkdown} from 'mdast-util-from-markdown'
44
import {u} from 'unist-builder'
55
import {removePosition} from './index.js'
6+
import * as mod from './index.js'
7+
8+
test('removePosition', () => {
9+
assert.deepEqual(
10+
Object.keys(mod).sort(),
11+
['removePosition'],
12+
'should expose the public api'
13+
)
614

7-
test('removePosition()', () => {
815
const empty = {position: undefined}
916

1017
assert.deepEqual(

0 commit comments

Comments
 (0)