Skip to content

Commit ead7356

Browse files
committed
Add tests for exposed identifiers
1 parent a5ad4d4 commit ead7356

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
@@ -8,10 +8,17 @@ import {generate} from 'astring'
88
import recast from 'recast'
99
import escodegen from 'escodegen'
1010
import {buildJsx} from './index.js'
11+
import * as mod from './index.js'
1112

1213
const parser = Parser.extend(jsx())
1314

14-
test('estree-util-build-jsx', () => {
15+
test('buildJsx', () => {
16+
assert.deepEqual(
17+
Object.keys(mod).sort(),
18+
['buildJsx'],
19+
'should expose the public api'
20+
)
21+
1522
assert.deepEqual(
1623
expression(buildJsx(parse('<><x /></>'))),
1724
{

0 commit comments

Comments
 (0)