Skip to content

Commit 73e8c43

Browse files
committed
Add tests for exposed identifiers
1 parent 90d21f9 commit 73e8c43

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
@@ -10,8 +10,15 @@ import {parse as acornParse} from 'acorn'
1010
import recast from 'recast'
1111
import {visit} from 'estree-util-visit'
1212
import {attachComments} from './index.js'
13+
import * as mod from './index.js'
14+
15+
test('attachComments', () => {
16+
assert.deepEqual(
17+
Object.keys(mod).sort(),
18+
['attachComments'],
19+
'should expose the public api'
20+
)
1321

14-
test('estree-attach-comments (recast)', () => {
1522
assert.equal(
1623
recast.print(attachComments(...parse(''))).code,
1724
'',

0 commit comments

Comments
 (0)