File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ beforeEach(() => {
13
13
result . pass = htmlDiffer . isEqual ( expected , actual ) ;
14
14
15
15
if ( result . pass ) {
16
- result . message = spec . markdown + ' \n------\n\nExpected: Should Fail' ;
16
+ result . message = ` ${ spec . markdown } \n------\n\nExpected: Should Fail` ;
17
17
} else {
18
18
const diff = htmlDiffer . firstDiff ( actual , expected ) ;
19
- result . message = ' Expected: ' + diff . expected + ' \n Actual: ' + diff . actual ;
19
+ result . message = ` Expected: ${ diff . expected } \n Actual: ${ diff . actual } ` ;
20
20
}
21
21
return result ;
22
22
}
Original file line number Diff line number Diff line change @@ -329,9 +329,9 @@ function fix() {
329
329
if ( path . extname ( file ) === '.md' ) {
330
330
if ( fm . test ( text ) ) {
331
331
text = fm ( text ) ;
332
- text = ' ---\n' + text . frontmatter + ' \ngfm: false\n---\n' + text . body ;
332
+ text = ` ---\n${ text . frontmatter } \ngfm: false\n---\n${ text . body } ` ;
333
333
} else {
334
- text = ' ---\ngfm: false\n---\n' + text ;
334
+ text = ` ---\ngfm: false\n---\n${ text } ` ;
335
335
}
336
336
}
337
337
@@ -372,7 +372,7 @@ function fix() {
372
372
// markdown does some strange things.
373
373
// it does not encode naked `>`, marked does.
374
374
{
375
- const file = dir + ' /amps_and_angles_encoding.html' ;
375
+ const file = ` ${ dir } /amps_and_angles_encoding.html` ;
376
376
const html = fs . readFileSync ( file , 'utf8' )
377
377
. replace ( '6 > 5.' , '6 > 5.' ) ;
378
378
@@ -417,7 +417,7 @@ function parseArg(argv) {
417
417
if ( arg . length > 2 ) {
418
418
// e.g. -abc
419
419
argv = arg . substring ( 1 ) . split ( '' ) . map ( ch => {
420
- return '-' + ch ;
420
+ return `- ${ ch } ` ;
421
421
} ) . concat ( argv ) ;
422
422
arg = argv . shift ( ) ;
423
423
} else {
You can’t perform that action at this time.
0 commit comments