@@ -20,14 +20,14 @@ test('core', async function (t) {
2020 } )
2121} )
2222
23- test ( 'gfmAutolinkLiteralFromMarkdown' , async function ( t ) {
23+ test ( 'gfmAutolinkLiteralFromMarkdown() ' , async function ( t ) {
2424 await t . test ( 'should support autolink literals' , async function ( ) {
2525 assert . deepEqual (
2626 fromMarkdown (
2727 'www.example.com, https://example.com, and contact@example.com.' ,
2828 {
2929 extensions : [ gfmAutolinkLiteral ( ) ] ,
30- mdastExtensions : [ gfmAutolinkLiteralFromMarkdown ]
30+ mdastExtensions : [ gfmAutolinkLiteralFromMarkdown ( ) ]
3131 }
3232 ) ,
3333 {
@@ -136,7 +136,7 @@ test('gfmAutolinkLiteralFromMarkdown', async function (t) {
136136 assert . deepEqual (
137137 fromMarkdown ( '[https://google.com](https://google.com)' , {
138138 extensions : [ gfmAutolinkLiteral ( ) ] ,
139- mdastExtensions : [ gfmAutolinkLiteralFromMarkdown ]
139+ mdastExtensions : [ gfmAutolinkLiteralFromMarkdown ( ) ]
140140 } ) ,
141141 {
142142 type : 'root' ,
@@ -179,7 +179,7 @@ test('gfmAutolinkLiteralFromMarkdown', async function (t) {
179179 } )
180180} )
181181
182- test ( 'gfmAutolinkLiteralToMarkdown' , async function ( t ) {
182+ test ( 'gfmAutolinkLiteralToMarkdown() ' , async function ( t ) {
183183 await t . test ( 'should not serialize autolink literals' , async function ( ) {
184184 assert . deepEqual (
185185 toMarkdown (
@@ -196,7 +196,7 @@ test('gfmAutolinkLiteralToMarkdown', async function (t) {
196196 { type : 'text' , value : ' c.' }
197197 ]
198198 } ,
199- { extensions : [ gfmAutolinkLiteralToMarkdown ] }
199+ { extensions : [ gfmAutolinkLiteralToMarkdown ( ) ] }
200200 ) ,
201201 'a <contact@example.com> c.\n'
202202 )
@@ -208,7 +208,7 @@ test('gfmAutolinkLiteralToMarkdown', async function (t) {
208208 assert . deepEqual (
209209 toMarkdown (
210210 { type : 'paragraph' , children : [ { type : 'text' , value : 'a b@c.d' } ] } ,
211- { extensions : [ gfmAutolinkLiteralToMarkdown ] }
211+ { extensions : [ gfmAutolinkLiteralToMarkdown ( ) ] }
212212 ) ,
213213 'a b\\@c.d\n'
214214 )
@@ -221,7 +221,7 @@ test('gfmAutolinkLiteralToMarkdown', async function (t) {
221221 assert . deepEqual (
222222 toMarkdown (
223223 { type : 'paragraph' , children : [ { type : 'text' , value : 'a @c' } ] } ,
224- { extensions : [ gfmAutolinkLiteralToMarkdown ] }
224+ { extensions : [ gfmAutolinkLiteralToMarkdown ( ) ] }
225225 ) ,
226226 'a @c\n'
227227 )
@@ -234,7 +234,7 @@ test('gfmAutolinkLiteralToMarkdown', async function (t) {
234234 assert . deepEqual (
235235 toMarkdown (
236236 { type : 'paragraph' , children : [ { type : 'text' , value : 'a www.b.c' } ] } ,
237- { extensions : [ gfmAutolinkLiteralToMarkdown ] }
237+ { extensions : [ gfmAutolinkLiteralToMarkdown ( ) ] }
238238 ) ,
239239 'a www\\.b.c\n'
240240 )
@@ -247,7 +247,7 @@ test('gfmAutolinkLiteralToMarkdown', async function (t) {
247247 assert . deepEqual (
248248 toMarkdown (
249249 { type : 'paragraph' , children : [ { type : 'text' , value : 'a.b' } ] } ,
250- { extensions : [ gfmAutolinkLiteralToMarkdown ] }
250+ { extensions : [ gfmAutolinkLiteralToMarkdown ( ) ] }
251251 ) ,
252252 'a.b\n'
253253 )
@@ -260,7 +260,7 @@ test('gfmAutolinkLiteralToMarkdown', async function (t) {
260260 assert . deepEqual (
261261 toMarkdown (
262262 { type : 'paragraph' , children : [ { type : 'text' , value : 'https:/' } ] } ,
263- { extensions : [ gfmAutolinkLiteralToMarkdown ] }
263+ { extensions : [ gfmAutolinkLiteralToMarkdown ( ) ] }
264264 ) ,
265265 'https\\:/\n'
266266 )
@@ -273,7 +273,7 @@ test('gfmAutolinkLiteralToMarkdown', async function (t) {
273273 assert . deepEqual (
274274 toMarkdown (
275275 { type : 'paragraph' , children : [ { type : 'text' , value : 'https:a' } ] } ,
276- { extensions : [ gfmAutolinkLiteralToMarkdown ] }
276+ { extensions : [ gfmAutolinkLiteralToMarkdown ( ) ] }
277277 ) ,
278278 'https:a\n'
279279 )
@@ -286,7 +286,7 @@ test('gfmAutolinkLiteralToMarkdown', async function (t) {
286286 assert . deepEqual (
287287 toMarkdown (
288288 { type : 'definition' , label : 'http://a' , identifier : '' , url : '' } ,
289- { extensions : [ gfmAutolinkLiteralToMarkdown ] }
289+ { extensions : [ gfmAutolinkLiteralToMarkdown ( ) ] }
290290 ) ,
291291 '[http://a]: <>\n'
292292 )
@@ -310,7 +310,7 @@ test('gfmAutolinkLiteralToMarkdown', async function (t) {
310310 }
311311 ]
312312 } ,
313- { extensions : [ gfmAutolinkLiteralToMarkdown ] }
313+ { extensions : [ gfmAutolinkLiteralToMarkdown ( ) ] }
314314 ) ,
315315 '[http://a][]\n'
316316 )
@@ -334,7 +334,7 @@ test('gfmAutolinkLiteralToMarkdown', async function (t) {
334334 }
335335 ]
336336 } ,
337- { extensions : [ gfmAutolinkLiteralToMarkdown ] }
337+ { extensions : [ gfmAutolinkLiteralToMarkdown ( ) ] }
338338 ) ,
339339 '[http://a][a]\n'
340340 )
@@ -358,7 +358,7 @@ test('gfmAutolinkLiteralToMarkdown', async function (t) {
358358 }
359359 ]
360360 } ,
361- { extensions : [ gfmAutolinkLiteralToMarkdown ] }
361+ { extensions : [ gfmAutolinkLiteralToMarkdown ( ) ] }
362362 ) ,
363363 '[a][http://a]\n'
364364 )
@@ -380,7 +380,7 @@ test('gfmAutolinkLiteralToMarkdown', async function (t) {
380380 }
381381 ]
382382 } ,
383- { extensions : [ gfmAutolinkLiteralToMarkdown ] }
383+ { extensions : [ gfmAutolinkLiteralToMarkdown ( ) ] }
384384 ) ,
385385 '[a](http://a)\n'
386386 )
@@ -404,7 +404,7 @@ test('gfmAutolinkLiteralToMarkdown', async function (t) {
404404 }
405405 ]
406406 } ,
407- { extensions : [ gfmAutolinkLiteralToMarkdown ] }
407+ { extensions : [ gfmAutolinkLiteralToMarkdown ( ) ] }
408408 ) ,
409409 '![a][http://a]\n'
410410 )
@@ -428,7 +428,7 @@ test('gfmAutolinkLiteralToMarkdown', async function (t) {
428428 }
429429 ]
430430 } ,
431- { extensions : [ gfmAutolinkLiteralToMarkdown ] }
431+ { extensions : [ gfmAutolinkLiteralToMarkdown ( ) ] }
432432 ) ,
433433 '![http://a][a]\n'
434434 )
@@ -444,7 +444,7 @@ test('gfmAutolinkLiteralToMarkdown', async function (t) {
444444 type : 'paragraph' ,
445445 children : [ { type : 'image' , url : 'http://a' , alt : 'a' } ]
446446 } ,
447- { extensions : [ gfmAutolinkLiteralToMarkdown ] }
447+ { extensions : [ gfmAutolinkLiteralToMarkdown ( ) ] }
448448 ) ,
449449 '\n'
450450 )
@@ -474,7 +474,7 @@ test('fixtures', async function (t) {
474474
475475 const mdast = fromMarkdown ( input , {
476476 extensions : [ gfmAutolinkLiteral ( ) ] ,
477- mdastExtensions : [ gfmAutolinkLiteralFromMarkdown ]
477+ mdastExtensions : [ gfmAutolinkLiteralFromMarkdown ( ) ]
478478 } )
479479
480480 // @ts -expect-error: to do, remove when `to-hast` is released.
0 commit comments