Skip to content

Commit 233dcd5

Browse files
committed
Add tests for exposed identifiers
1 parent 8aaff80 commit 233dcd5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,20 @@ import {toMarkdown} from 'mdast-util-to-markdown'
99
import {removePosition} from 'unist-util-remove-position'
1010
import {frontmatter} from 'micromark-extension-frontmatter'
1111
import {frontmatterFromMarkdown, frontmatterToMarkdown} from './index.js'
12+
import * as mod from './index.js'
1213

1314
const custom = {type: 'custom', marker: {open: '<', close: '>'}}
1415
const json = {type: 'json', fence: {open: '{', close: '}'}}
1516
const 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+
1726
test('frontmatterFromMarkdown', () => {
1827
assert.deepEqual(
1928
removePosition(

0 commit comments

Comments
 (0)