Skip to content

Commit fe25136

Browse files
committed
Add tests for exposed identifiers
1 parent 8d7723c commit fe25136

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
@@ -4,8 +4,17 @@ import {fromMarkdown} from 'mdast-util-from-markdown'
44
import {toMarkdown} from 'mdast-util-to-markdown'
55
import {gfmFootnote} from 'micromark-extension-gfm-footnote'
66
import {gfmFootnoteFromMarkdown, gfmFootnoteToMarkdown} from './index.js'
7+
import * as mod from './index.js'
78

8-
test('markdown -> mdast', () => {
9+
test('core', () => {
10+
assert.deepEqual(
11+
Object.keys(mod).sort(),
12+
['gfmFootnoteFromMarkdown', 'gfmFootnoteToMarkdown'],
13+
'should expose the public api'
14+
)
15+
})
16+
17+
test('gfmFootnoteFromMarkdown', () => {
918
assert.deepEqual(
1019
fromMarkdown('[^a]: b\nc\n\n d', {
1120
extensions: [gfmFootnote()],
@@ -137,7 +146,7 @@ test('markdown -> mdast', () => {
137146
)
138147
})
139148

140-
test('mdast -> markdown', () => {
149+
test('gfmFootnoteToMarkdown', () => {
141150
assert.deepEqual(
142151
toMarkdown(
143152
{type: 'footnoteReference', identifier: 'a'},

0 commit comments

Comments
 (0)