@@ -6,20 +6,23 @@ import assert from 'node:assert/strict'
6
6
import test from 'node:test'
7
7
import { frontmatter } from 'micromark-extension-frontmatter'
8
8
import { fromMarkdown } from 'mdast-util-from-markdown'
9
+ import {
10
+ frontmatterFromMarkdown ,
11
+ frontmatterToMarkdown
12
+ } from 'mdast-util-frontmatter'
9
13
import { toMarkdown } from 'mdast-util-to-markdown'
10
14
import { removePosition } from 'unist-util-remove-position'
11
- import { frontmatterFromMarkdown , frontmatterToMarkdown } from './index.js'
12
15
13
16
const custom = { type : 'custom' , marker : { open : '<' , close : '>' } }
14
17
const json = { type : 'json' , fence : { open : '{' , close : '}' } }
15
18
const yamlAnywhere = { type : 'yaml' , marker : '-' , anywhere : true }
16
19
17
20
test ( 'core' , async function ( t ) {
18
21
await t . test ( 'should expose the public api' , async function ( ) {
19
- assert . deepEqual ( Object . keys ( await import ( './index.js' ) ) . sort ( ) , [
20
- 'frontmatterFromMarkdown' ,
21
- ' frontmatterToMarkdown'
22
- ] )
22
+ assert . deepEqual (
23
+ Object . keys ( await import ( 'mdast-util-frontmatter' ) ) . sort ( ) ,
24
+ [ 'frontmatterFromMarkdown' , ' frontmatterToMarkdown']
25
+ )
23
26
} )
24
27
} )
25
28
0 commit comments