Skip to content

Commit 20891fa

Browse files
committed
Add tests for exposed identifiers
1 parent 209cb39 commit 20891fa

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

test/index.js

+11-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,17 @@ import {
1010
gfmAutolinkLiteralFromMarkdown,
1111
gfmAutolinkLiteralToMarkdown
1212
} from '../index.js'
13+
import * as mod from '../index.js'
1314

14-
test('markdown -> mdast', () => {
15+
test('core', () => {
16+
assert.deepEqual(
17+
Object.keys(mod).sort(),
18+
['gfmAutolinkLiteralFromMarkdown', 'gfmAutolinkLiteralToMarkdown'],
19+
'should expose the public api'
20+
)
21+
})
22+
23+
test('gfmAutolinkLiteralFromMarkdown', () => {
1524
assert.deepEqual(
1625
fromMarkdown(
1726
'www.example.com, https://example.com, and [email protected].',
@@ -168,7 +177,7 @@ test('markdown -> mdast', () => {
168177
)
169178
})
170179

171-
test('mdast -> markdown', async () => {
180+
test('gfmAutolinkLiteralToMarkdown', async () => {
172181
assert.deepEqual(
173182
toMarkdown(
174183
{

0 commit comments

Comments
 (0)