Skip to content

Commit 0b9555b

Browse files
committed
Add tests for exposed identifiers
1 parent 0a1f3e2 commit 0b9555b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test.js

Lines changed: 7 additions & 0 deletions
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 {VFile} from 'vfile'
44
import {toESLint} from './index.js'
5+
import * as mod from './index.js'
56

67
test('toESLint', () => {
8+
assert.deepEqual(
9+
Object.keys(mod).sort(),
10+
['toESLint'],
11+
'should expose the public api'
12+
)
13+
714
const file = new VFile({path: '~/example.md'})
815

916
const message = file.info('?')

0 commit comments

Comments
 (0)