File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,17 @@ import {fromMarkdown} from 'mdast-util-from-markdown'
4
4
import { toMarkdown } from 'mdast-util-to-markdown'
5
5
import { gfmFootnote } from 'micromark-extension-gfm-footnote'
6
6
import { gfmFootnoteFromMarkdown , gfmFootnoteToMarkdown } from './index.js'
7
+ import * as mod from './index.js'
7
8
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' , ( ) => {
9
18
assert . deepEqual (
10
19
fromMarkdown ( '[^a]: b\nc\n\n d' , {
11
20
extensions : [ gfmFootnote ( ) ] ,
@@ -137,7 +146,7 @@ test('markdown -> mdast', () => {
137
146
)
138
147
} )
139
148
140
- test ( 'mdast -> markdown ' , ( ) => {
149
+ test ( 'gfmFootnoteToMarkdown ' , ( ) => {
141
150
assert . deepEqual (
142
151
toMarkdown (
143
152
{ type : 'footnoteReference' , identifier : 'a' } ,
You can’t perform that action at this time.
0 commit comments