Skip to content

Commit 53c5d82

Browse files
committed
Add tests for exposed identifiers
1 parent 0ee37a1 commit 53c5d82

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 {parse} from 'acorn'
44
import {positionFromEstree} from './index.js'
5+
import * as mod from './index.js'
6+
7+
test('positionFromEstree', () => {
8+
assert.deepEqual(
9+
Object.keys(mod).sort(),
10+
['positionFromEstree'],
11+
'should expose the public api'
12+
)
513

6-
test('unist-util-position-from-estree', () => {
714
assert.deepEqual(
815
positionFromEstree(),
916
{

0 commit comments

Comments
 (0)