Skip to content

Commit ed996fe

Browse files
committed
Add tests for exposed identifiers
1 parent ab3559e commit ed996fe

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/index.js

+7
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,15 @@ import {parse, parseFragment} from 'parse5'
1616
import {visit} from 'unist-util-visit'
1717
import {read, toVFile} from 'to-vfile'
1818
import {fromParse5} from '../index.js'
19+
import * as mod from '../index.js'
1920

2021
test('fromParse5', () => {
22+
assert.deepEqual(
23+
Object.keys(mod).sort(),
24+
['fromParse5'],
25+
'should expose the public api'
26+
)
27+
2128
const file = toVFile({value: '<title>Hello!</title><h1>World!'})
2229

2330
assert.deepEqual(

0 commit comments

Comments
 (0)