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 @@ -8,8 +8,17 @@ import {
88 gfmTaskListItemFromMarkdown ,
99 gfmTaskListItemToMarkdown
1010} from './index.js'
11+ import * as mod from './index.js'
1112
12- test ( 'markdown -> mdast' , ( ) => {
13+ test ( 'core' , ( ) => {
14+ assert . deepEqual (
15+ Object . keys ( mod ) . sort ( ) ,
16+ [ 'gfmTaskListItemFromMarkdown' , 'gfmTaskListItemToMarkdown' ] ,
17+ 'should expose the public api'
18+ )
19+ } )
20+
21+ test ( 'gfmTaskListItemFromMarkdown' , ( ) => {
1322 assert . deepEqual (
1423 fromMarkdown ( '* [x] a' , {
1524 extensions : [ gfmTaskListItem ] ,
@@ -264,7 +273,7 @@ test('markdown -> mdast', () => {
264273 )
265274} )
266275
267- test ( 'mdast -> markdown ' , ( ) => {
276+ test ( 'gfmTaskListItemToMarkdown ' , ( ) => {
268277 assert . deepEqual (
269278 toMarkdown (
270279 {
You can’t perform that action at this time.
0 commit comments