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'
44import { toMarkdown } from 'mdast-util-to-markdown'
55import { gfmFootnote } from 'micromark-extension-gfm-footnote'
66import { 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' } ,
You can’t perform that action at this time.
0 commit comments