Skip to content

Commit e66004e

Browse files
committed
Add tests for exposed identifiers
1 parent 3dabbeb commit e66004e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ import {toMarkdown} from 'mdast-util-to-markdown'
55
import {removePosition} from 'unist-util-remove-position'
66
import {directive} from 'micromark-extension-directive'
77
import {directiveFromMarkdown, directiveToMarkdown} from './index.js'
8+
import * as mod from './index.js'
9+
10+
test('core', () => {
11+
assert.deepEqual(
12+
Object.keys(mod).sort(),
13+
['directiveFromMarkdown', 'directiveToMarkdown'],
14+
'should expose the public api'
15+
)
16+
})
817

918
test('directiveFromMarkdown', () => {
1019
assert.deepEqual(

0 commit comments

Comments
 (0)