Skip to content

Commit a9c3661

Browse files
committed
Add tests for exposed identifiers
1 parent eaf7e16 commit a9c3661

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/index.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,15 @@ import jsx from 'acorn-jsx'
99
// @ts-expect-error: untyped.
1010
import stage3 from 'acorn-stage3'
1111
import {fromJs} from '../index.js'
12+
import * as mod from '../index.js'
13+
14+
test('fromJs', () => {
15+
assert.deepEqual(
16+
Object.keys(mod).sort(),
17+
['fromJs'],
18+
'should expose the public api'
19+
)
1220

13-
test('estree-util-from-js', () => {
1421
assert.deepEqual(
1522
fromJs('1 + "2"'),
1623
{

0 commit comments

Comments
 (0)