File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,20 @@ import {toMarkdown} from 'mdast-util-to-markdown'
99import { removePosition } from 'unist-util-remove-position'
1010import { frontmatter } from 'micromark-extension-frontmatter'
1111import { frontmatterFromMarkdown , frontmatterToMarkdown } from './index.js'
12+ import * as mod from './index.js'
1213
1314const custom = { type : 'custom' , marker : { open : '<' , close : '>' } }
1415const json = { type : 'json' , fence : { open : '{' , close : '}' } }
1516const yamlAnywhere = { type : 'yaml' , marker : '-' , anywhere : true }
1617
18+ test ( 'core' , ( ) => {
19+ assert . deepEqual (
20+ Object . keys ( mod ) . sort ( ) ,
21+ [ 'frontmatterFromMarkdown' , 'frontmatterToMarkdown' ] ,
22+ 'should expose the public api'
23+ )
24+ } )
25+
1726test ( 'frontmatterFromMarkdown' , ( ) => {
1827 assert . deepEqual (
1928 removePosition (
You can’t perform that action at this time.
0 commit comments