@@ -228,9 +228,7 @@ describe('render', function () {
228
228
test ( 'regular' , async function ( ) {
229
229
const output = window . marked ( '[alt text](http://url)' ) ;
230
230
231
- expect ( output ) . toMatchInlineSnapshot (
232
- '"<p><a href="http://url" target="_blank" rel="noopener">alt text</a></p>"' ,
233
- ) ;
231
+ expect ( output ) . toMatchInlineSnapshot ( `"<p><a href="http://url" target="_blank" rel="noopener">alt text</a></p>"` ) ;
234
232
} ) ;
235
233
236
234
test ( 'linkrel' , async function ( ) {
@@ -240,25 +238,19 @@ describe('render', function () {
240
238
// });
241
239
const output = window . marked ( '[alt text](http://www.example.com)' ) ;
242
240
243
- expect ( output ) . toMatchInlineSnapshot (
244
- '"<p><a href="http://www.example.com" target="_blank" rel="noopener">alt text</a></p>"' ,
245
- ) ;
241
+ expect ( output ) . toMatchInlineSnapshot ( `"<p><a href="http://www.example.com" target="_blank" rel="noopener">alt text</a></p>"` ) ;
246
242
} ) ;
247
243
248
244
test ( 'disabled' , async function ( ) {
249
245
const output = window . marked ( "[alt text](http://url ':disabled')" ) ;
250
246
251
- expect ( output ) . toMatchInlineSnapshot (
252
- '"<p><a href="javascript:void(0)" target="_blank" rel="noopener" disabled>alt text</a></p>"' ,
253
- ) ;
247
+ expect ( output ) . toMatchInlineSnapshot ( `"<p><a href="javascript:void(0)" target="_blank" rel="noopener" disabled>alt text</a></p>"` ) ;
254
248
} ) ;
255
249
256
250
test ( 'target for absolute path' , async function ( ) {
257
251
const output = window . marked ( "[alt text](http://url ':target=_self')" ) ;
258
252
259
- expect ( output ) . toMatchInlineSnapshot (
260
- '"<p><a href="http://url" target="_self" >alt text</a></p>"' ,
261
- ) ;
253
+ expect ( output ) . toMatchInlineSnapshot ( `"<p><a href="http://url" target="_self">alt text</a></p>"` ) ;
262
254
} ) ;
263
255
264
256
test ( 'target for relative path' , async function ( ) {
@@ -274,27 +266,21 @@ describe('render', function () {
274
266
"[alt text](http://url ':class=someCssClass')" ,
275
267
) ;
276
268
277
- expect ( output ) . toMatchInlineSnapshot (
278
- '"<p><a href="http://url" target="_blank" rel="noopener" class="someCssClass">alt text</a></p>"' ,
279
- ) ;
269
+ expect ( output ) . toMatchInlineSnapshot ( `"<p><a href="http://url" target="_blank" rel="noopener" class="someCssClass">alt text</a></p>"` ) ;
280
270
} ) ;
281
271
282
272
test ( 'multi class config' , async function ( ) {
283
273
const output = window . marked (
284
274
"[alt text](http://url ':class=someCssClass :class=anotherCssClass')" ,
285
275
) ;
286
276
287
- expect ( output ) . toMatchInlineSnapshot (
288
- `"<p><a href="http://url" target="_blank" rel="noopener" class="someCssClass anotherCssClass">alt text</a></p>"` ,
289
- ) ;
277
+ expect ( output ) . toMatchInlineSnapshot ( `"<p><a href="http://url" target="_blank" rel="noopener" class="someCssClass anotherCssClass">alt text</a></p>"` ) ;
290
278
} ) ;
291
279
292
280
test ( 'id' , async function ( ) {
293
281
const output = window . marked ( "[alt text](http://url ':id=someCssID')" ) ;
294
282
295
- expect ( output ) . toMatchInlineSnapshot (
296
- '"<p><a href="http://url" target="_blank" rel="noopener" id="someCssID">alt text</a></p>"' ,
297
- ) ;
283
+ expect ( output ) . toMatchInlineSnapshot ( `"<p><a href="http://url" target="_blank" rel="noopener" id="someCssID">alt text</a></p>"` ) ;
298
284
} ) ;
299
285
} ) ;
300
286
0 commit comments