File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,12 @@ function fromXml(doc) {
3030
3131 return stack [ 0 ]
3232
33- function onerror ( err ) {
34- var index = err . message . indexOf ( '\nLine' )
33+ function onerror ( error ) {
34+ var index = error . message . indexOf ( '\nLine' )
3535 /* istanbul ignore next
3636 * - The substring should always be included, but this guards against
3737 * changes in newer sax versions */
38- fail ( index === - 1 ? err . message : err . message . slice ( 0 , index ) , 'sax' )
38+ fail ( index === - 1 ? error . message : error . message . slice ( 0 , index ) , 'sax' )
3939 }
4040
4141 function onsgmldeclaration ( ) {
Original file line number Diff line number Diff line change 4343 "remark-cli" : " ^9.0.0" ,
4444 "remark-preset-wooorm" : " ^8.0.0" ,
4545 "tape" : " ^5.0.0" ,
46- "xo" : " ^0.34 .0"
46+ "xo" : " ^0.38 .0"
4747 },
4848 "scripts" : {
4949 "format" : " remark . -qfo && prettier . -w --loglevel warn && xo --fix" ,
Original file line number Diff line number Diff line change @@ -208,8 +208,12 @@ test('xast-util-from-xml', function (t) {
208208
209209test ( 'fixtures' , function ( t ) {
210210 var base = join ( 'test' , 'fixtures' )
211+ var files = fs . readdirSync ( base ) . filter ( negate ( hidden ) )
212+ var index = - 1
211213
212- fs . readdirSync ( base ) . filter ( negate ( hidden ) ) . forEach ( each )
214+ while ( ++ index < files . length ) {
215+ each ( files [ index ] )
216+ }
213217
214218 t . end ( )
215219
You can’t perform that action at this time.
0 commit comments