Skip to content

Commit 945959f

Browse files
committed
Add tests for exposed identifiers
1 parent b69a332 commit 945959f

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

test.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,17 @@ import {
88
gfmTaskListItemFromMarkdown,
99
gfmTaskListItemToMarkdown
1010
} from './index.js'
11+
import * as mod from './index.js'
1112

12-
test('markdown -> mdast', () => {
13+
test('core', () => {
14+
assert.deepEqual(
15+
Object.keys(mod).sort(),
16+
['gfmTaskListItemFromMarkdown', 'gfmTaskListItemToMarkdown'],
17+
'should expose the public api'
18+
)
19+
})
20+
21+
test('gfmTaskListItemFromMarkdown', () => {
1322
assert.deepEqual(
1423
fromMarkdown('* [x] a', {
1524
extensions: [gfmTaskListItem],
@@ -264,7 +273,7 @@ test('markdown -> mdast', () => {
264273
)
265274
})
266275

267-
test('mdast -> markdown', () => {
276+
test('gfmTaskListItemToMarkdown', () => {
268277
assert.deepEqual(
269278
toMarkdown(
270279
{

0 commit comments

Comments
 (0)