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'
9
9
import { removePosition } from 'unist-util-remove-position'
10
10
import { frontmatter } from 'micromark-extension-frontmatter'
11
11
import { frontmatterFromMarkdown , frontmatterToMarkdown } from './index.js'
12
+ import * as mod from './index.js'
12
13
13
14
const custom = { type : 'custom' , marker : { open : '<' , close : '>' } }
14
15
const json = { type : 'json' , fence : { open : '{' , close : '}' } }
15
16
const yamlAnywhere = { type : 'yaml' , marker : '-' , anywhere : true }
16
17
18
+ test ( 'core' , ( ) => {
19
+ assert . deepEqual (
20
+ Object . keys ( mod ) . sort ( ) ,
21
+ [ 'frontmatterFromMarkdown' , 'frontmatterToMarkdown' ] ,
22
+ 'should expose the public api'
23
+ )
24
+ } )
25
+
17
26
test ( 'frontmatterFromMarkdown' , ( ) => {
18
27
assert . deepEqual (
19
28
removePosition (
You can’t perform that action at this time.
0 commit comments