Skip to content

Commit a50b9ad

Browse files
committed
Add tests for exposed identifiers
1 parent d1975d3 commit a50b9ad

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
import assert from 'node:assert/strict'
22
import test from 'node:test'
33
import {toPoint, toPosition, fromPoint, fromPosition} from 'unist-util-lsp'
4+
import * as mod from '../index.js'
5+
6+
test('core', async () => {
7+
assert.deepEqual(
8+
Object.keys(mod).sort(),
9+
['fromPoint', 'fromPosition', 'toPoint', 'toPosition'],
10+
'should expose the public api'
11+
)
12+
})
413

514
test('fromPoint', async () => {
615
assert.deepEqual(

0 commit comments

Comments
 (0)