Skip to content

Commit 1f0567a

Browse files
committed
Add tests for exposed identifiers
1 parent bdd9b33 commit 1f0567a

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
@@ -8,8 +8,15 @@ import {Parser} from 'acorn'
88
import acornJsx from 'acorn-jsx'
99
import {SourceMapGenerator} from 'source-map'
1010
import {toJs, jsx} from '../index.js'
11+
import * as mod from '../index.js'
12+
13+
test('toJs', () => {
14+
assert.deepEqual(
15+
Object.keys(mod).sort(),
16+
['jsx', 'toJs'],
17+
'should expose the public api'
18+
)
1119

12-
test('estree-util-from-js', () => {
1320
assert.deepEqual(
1421
toJs(fromJs('const a = 1')),
1522
{value: 'const a = 1;\n', map: undefined},

0 commit comments

Comments
 (0)