Skip to content

Commit 1acfb63

Browse files
committed
Add tests for exposed identifiers
1 parent 6f90b89 commit 1acfb63

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
@@ -12,8 +12,15 @@ import remarkParse from 'remark-parse'
1212
import remarkRehype from 'remark-rehype'
1313
import rehypeStringify from 'rehype-stringify'
1414
import {raw} from './index.js'
15+
import * as mod from './index.js'
1516

1617
test('raw', () => {
18+
assert.deepEqual(
19+
Object.keys(mod).sort(),
20+
['raw'],
21+
'should expose the public api'
22+
)
23+
1724
assert.throws(
1825
() => {
1926
raw(u('root', [u('customLiteral', '')]))

0 commit comments

Comments
 (0)